"R 컬럼명 변경"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
3번째 줄: 3번째 줄:
;R 데이터프레임 컬럼명 변경
;R 데이터프레임 컬럼명 변경


<source lang='r' notebook>
<syntaxhighlight lang='r' notebook>
df <- iris
df <- iris
df
df
</source>
</syntaxhighlight>
<source lang='r' notebook>
<syntaxhighlight lang='r' notebook>
names(df)[1] <- "day"
names(df)[1] <- "day"
names(df)[2] <- "fruit"
names(df)[2] <- "fruit"
names(df)[3] <- "ea"
names(df)[3] <- "ea"
df
df
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 9월 24일 (금) 01:14 판

1 개요

R 컬럼명 변경
R 데이터프레임 컬럼명 변경
df <- iris
df
names(df)[1] <- "day"
names(df)[2] <- "fruit"
names(df)[3] <- "ea"
df

2 같이 보기

3 참고

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