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

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
主站蜘蛛池模板: 海宁市| 双辽市| 禄丰县| 德惠市| 青神县| 文水县| 会同县| 万山特区| 彭泽县| 桃江县| 周至县| 武功县| 普定县| 垣曲县| 信丰县| 丹江口市| 资中县| 上饶县| 保德县| 阿尔山市| 武城县| 旬阳县| 文昌市| 安吉县| 安图县| 安塞县| 毕节市| 衡山县| 安丘市| 长春市| 房山区| 延边| 南郑县| 鹤庆县| 兖州市| 舒兰市| 千阳县| 莲花县| 台湾省| 盐津县| 中阳县|