"R as.table()"의 두 판 사이의 차이

(새 문서: ==개요== ;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,...)
 
16번째 줄: 16번째 줄:


==같이 보기==
==같이 보기==
* [[R 분할표]]
* [[R table()]]
* [[R table()]]
* [[R xtabs()]]
* [[R xtabs()]]

2020년 11월 21일 (토) 14:22 판

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 }}