R 컬럼명 변경

(R 데이터프레임 컬럼명 변경에서 넘어옴)

1 개요[ | ]

R 컬럼명 변경
R 데이터프레임 컬럼명 변경

2 컬럼명 지정[ | ]

df <- iris
head(df, 2)
names(df)[names(df)=="Sepal.Length"] <- "aaa"
names(df)[names(df)=="Petal.Length"] <- "bbb"
head(df, 2)

3 컬럼위치 지정[ | ]

df <- iris
head(df, 2)
names(df)[1] <- "aaa"
names(df)[3] <- "bbb"
head(df, 2)

4 같이 보기[ | ]

5 참고[ | ]

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