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

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.

主站蜘蛛池模板: 长子县| 静宁县| 漳州市| 松潘县| 宽甸| 阿拉善右旗| 英吉沙县| 奎屯市| 磴口县| 莒南县| 同德县| 政和县| 绩溪县| 邯郸市| 调兵山市| 娱乐| 措勤县| 灵山县| 图们市| 图们市| 崇文区| 若尔盖县| 德昌县| 闽清县| 镇安县| 仙桃市| 玉环县| 元朗区| 丹寨县| 南靖县| 巧家县| 全南县| 沙田区| 五常市| 长兴县| 建水县| 蒲城县| 高密市| 类乌齐县| 津南区| 大名县|