R as.table()

Jmnote (토론 | 기여)님의 2019년 8월 24일 (토) 14:53 판 (새 문서: ==개요== ;R as.table() <source lang='r'> t <- as.table(rbind(c(762, 327, 468), c(484, 239, 477))) t ## A B C ## A 762 327 468 ## B 484 239 477 str(t) ## 'table' num [1:2,...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

R as.table()
t <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
t
##     A   B   C
## A 762 327 468
## B 484 239 477
str(t)
##  'table' num [1:2, 1:3] 762 484 327 239 468 477
##  - attr(*, "dimnames")=List of 2
##   ..$ : chr [1:2] "A" "B"
##   ..$ : chr [1:3] "A" "B" "C"

2 같이 보기

3 참고

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