1、R中的数据结构-Array
#一维数组
x1 <- 1:5;
x2 <- c(1,3,5,7,9)
x3 <- array(c(2, 4, 6, 8, 10))
#多维数组
xs <- array...3组
score1 <- cut(score, breaks = 3)
table(score1)
#切分成自己设置的组
score2 <- cut(score, breaks = c(90, 100...='utf8', stringsAsFactors=FALSE);
data[, 2]
3、R中的数据结构-List
数组的元素要求是同类型(不同类型会转成同一类型),List则可以组合多种不同类型的对象...一个List就像是一个JSON,一个包含很多键值对的数据结构。...可以把数据框理解为excel中的列。
?