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

Variable

Just before digging any deeper, we need to know how to assign values to any variable. So, what is a variable? It's like a container, which holds different value(s) of different types (or the same type). When assigning multiple values to any variable, we write the variable name to the left, followed by an <- or = and then the value. So, if we want to assign 2 to a variable x, we can write either of the two:

x <- 2

or

x = 2
I find the latter convenient, although the R community prefers to use the former – my suggestion is to use one which you find more convenient.

主站蜘蛛池模板: 兴山县| 潢川县| 咸宁市| 博兴县| 四子王旗| 治县。| 广东省| 新平| 社旗县| 和静县| 交口县| 开远市| 二连浩特市| 乌海市| 宿迁市| 奉节县| 拉萨市| 汕尾市| 龙里县| 米泉市| 沽源县| 九龙城区| 都安| 民丰县| 永善县| 潜江市| 平和县| 寿阳县| 凤冈县| 武夷山市| 吉林市| 和顺县| 凉城县| 茂名市| 永清县| 西林县| 香港| 邮箱| 德钦县| 陵川县| 郯城县|