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

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.

主站蜘蛛池模板: 宁远县| 巩留县| 永登县| 宕昌县| 霞浦县| 牙克石市| 九龙坡区| 广宁县| 山阴县| 黔西| 呈贡县| 平度市| 开化县| 博罗县| 恭城| 蛟河市| 花垣县| 湟中县| 靖宇县| 永春县| 革吉县| 浦东新区| 通江县| 麻阳| 印江| 玛沁县| 噶尔县| 民权县| 临漳县| 时尚| 榆林市| 云阳县| 定兴县| 古蔺县| 马鞍山市| 洛隆县| 华宁县| 雷波县| 宝坻区| 金寨县| 金川县|