R table()

Jmnote (토론 | 기여)님의 2019년 4월 26일 (금) 23:31 판 (Jmnote님이 R언어 table() 문서를 R table() 문서로 이동하면서 넘겨주기를 덮어썼습니다)

1 개요

R table()
x <- c(3,1,4,1,5,2,6,5)
table(x)
## x
## 1 2 3 4 5 6 
## 2 1 1 1 2 1
table( c(3,1,4,1,5,2,6,5) )
## 
## 1 2 3 4 5 6 
## 2 1 1 1 2 1
v <- c(1, 'hello', 1, 'world', 'hello')
table(v)
## v
##     1 hello world 
##     2     2     1

2 같이 보기

3 참고

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