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

Basic data types in R 

There are three main data types in R, and they are as follows:

  • Numerics
  • Logical or Boolean
  • Character

Numerics are any numbers with decimal values; thus, 21.0 and 21.1 are both numerics. We can use addition, subtraction, multiplication, division, and so on, with these numerics. Interestingly, R also considers integer numbers to be numerics. Logical or Boolean data consists of TRUE and FALSE; they are mainly used for different comparisons. The character variable consists of text, such as the name of something. We write character values in R by putting our character values inside "", or double quotes.

主站蜘蛛池模板: 南阳市| 紫阳县| 华阴市| 石首市| 中西区| 靖州| 乌拉特后旗| 都安| 温宿县| 嘉义市| 西盟| 曲麻莱县| 建湖县| 方山县| 崇文区| 玉龙| 德昌县| 布拖县| 当阳市| 南皮县| 三门县| 庆城县| 固始县| 新绛县| 绥阳县| 阜宁县| 安顺市| 万全县| 新安县| 乌恰县| 宁晋县| 株洲市| 金昌市| 阜南县| 湛江市| 安溪县| 大悟县| 合江县| 望谟县| 湟源县| 武清区|