R dimnames()

1 개요[ | ]

R dimnames()
options(echo=T)

t <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
t

dimnames(t) <- list(c("Female", "Male"), c("Democrat","Independent", "Republican"))
t

dimnames(t) <- list(gender = c("Female", "Male"), party = c("Democrat","Independent", "Republican"))
t

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}