R언어 as.factor()

Jmnote (토론 | 기여)님의 2019년 4월 5일 (금) 22:50 판 (새 문서: ==개요== ;R as.factor() <source lang='r'> x <- c(1,3,4,2) x #[1] 1 3 4 2 factor(x) #[1] 1 3 4 2 #Levels: 1 2 3 4 as.factor(x) #[1] 1 3 4 2 #Levels: 1 2 3 4 </source> ==같이...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

R as.factor()
x <- c(1,3,4,2)
x
#[1] 1 3 4 2

factor(x)
#[1] 1 3 4 2
#Levels: 1 2 3 4

as.factor(x)
#[1] 1 3 4 2
#Levels: 1 2 3 4

2 같이 보기

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