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

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.

主站蜘蛛池模板: 崇文区| 文昌市| 石景山区| 原平市| 阿拉善右旗| 青浦区| 定结县| 东平县| 深泽县| 乐陵市| 涿州市| 社旗县| 静海县| 通城县| 洛隆县| 桐城市| 姚安县| 双柏县| 北宁市| 阳谷县| 望城县| 茂名市| 新竹市| 河津市| 华安县| 嘉善县| 文成县| 山东省| 蓬安县| 罗平县| 张家口市| 林周县| 永康市| 乌拉特中旗| 江源县| 德令哈市| 峨边| 石棉县| 遂平县| 洛浦县| 随州市|