1.基本数据类型
r中的数据类型----属性:类型class&长度length
四种基本类型 numeric(...,factor,integer) character logical(T,F,NA) complex
另外在整数后面加上L 代表正整数 类型为integer
获取类型 mode typeof class
2.对象类型
向量------vector
因子------factor
矩阵------matrix
数组-------array
数据框-----dataframe
列表------list
时间序列----ts
#r中的数据类型----属性:类型class&长度length
#四种基本类型 numeric(...,factor,integer) character logical(T,F,NA) complex
#另外在整数后面加上L 代表正整数 类型为integer
#获取 类型 mode typeof class
a <- 10
b <- 'hello'
c <- NA
d <- 10L
e <- -10L
f <- 1 + 1i
mode(e)
typeof(f)