V <- c(1:6)
L <- c(1:6)
M <- matrix(V, 2,3)
A <- array(V, dim=c(2,1,3))
D <- data.table(a=V, b=M)
V %>% class() ## "integer"
L %>% class() ## "integer"
M %>% class() # "matrix"
A %>% class() # "array"
D %>% class() # "data.table" "data.frame"
V %>% typeof() ## "integer"
L %>% typeof() ## "integer"
M %>% typeof() ## "integer"
A %>% typeof() ## "integer"
D %>% typeof() # "list"
V %>% mode() ## "numeric"
L %>% mode() ## "numeric"
M %>% mode() ## "numeric"
A %>% mode() ## "numeric"
D %>% mode() # "list"
에러 Sudo R 해결 https://stackoverflow.com/questions/9689104/installing-r-on-mac-warning-messages-setting-lc-ctype-failed-using-c Open Terminal Write or paste in: defaults write org.R-project.R force.LANG en_US.UTF-8 Close Terminal (including any RStudio window) Start R