官术网_书友最值得收藏!

There's more…

You can create a vector by providing a combination of character, numeric, and logical, but the output will be always a single type. Now, the question is, if you try to create a vector of mixed data types, then what will be the type of output vector? The answer follows the rules as follows:

  • A combination of character and any other data type produces a character vector
  • A combination of numeric and logical data type produces a numeric vector
  • A combination of complex and numeric or logical data type produces a complex vector
主站蜘蛛池模板: 泽库县| 揭阳市| 永泰县| 方山县| 乌鲁木齐县| 吉隆县| 和林格尔县| 剑阁县| 正阳县| 蒙城县| 长兴县| 临夏市| 高密市| 密云县| 昌宁县| 东丰县| 府谷县| 奉贤区| 饶平县| 梨树县| 五华县| 灵石县| 天门市| 肥西县| 长沙县| 确山县| 丹江口市| 深圳市| 安新县| 宁陵县| 临桂县| 南漳县| 青州市| 荆州市| 柞水县| 永宁县| 凉城县| 武乡县| 准格尔旗| 朝阳区| 屏边|