R 컬럼명 변경

Jmnote (토론 | 기여)님의 2021년 9월 24일 (금) 01:17 판 (→‎개요)

1 개요

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

2 컬럼명 지정

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

3 위치 지정

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

4 같이 보기

5 참고

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