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

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
主站蜘蛛池模板: 武功县| 红安县| 上犹县| 晋州市| 黄山市| 恩施市| 鹿邑县| 保定市| 达拉特旗| 合江县| 泗洪县| 怀安县| 连州市| 高碑店市| 太保市| 沙洋县| 手机| 团风县| 大方县| 赞皇县| 蚌埠市| 沙湾县| 措勤县| 平陆县| 靖安县| 綦江县| 塔城市| 绥芬河市| 大足县| 增城市| 兴仁县| 汉源县| 桂阳县| 渝北区| 澄江县| 砚山县| 双江| 毕节市| 秭归县| 青岛市| 德保县|