"R 행수, 컬럼수 확인"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 7개는 보이지 않습니다)
4번째 줄: 4번째 줄:
<syntaxhighlight lang='r' notebook>
<syntaxhighlight lang='r' notebook>
df <- iris
df <- iris
# 행 수
nrow(df) # 150
dim(df)[1] # 150
</syntaxhighlight>
<syntaxhighlight lang='r' notebook>
# 컬럼 수
ncol(df) # 5
dim(df)[2] # 5
length(df) # 5
length(names(df)) # 5
</syntaxhighlight>
<syntaxhighlight lang='r' notebook>
# 행 수, 컬럼 수
dim(df)
</syntaxhighlight>
<syntaxhighlight lang='r' notebook>
# 기타
str(df)
str(df)
</syntaxhighlight>
</syntaxhighlight>


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[R str()]]
* [[R str()]]
* [[R dim()]]
* [[R ncol()]]
* [[R nrow()]]
* [[R length()]]
* [[R names()]]
* [[R 행수 확인]]
* [[R 행수 확인]]
* [[R 컬럼수 확인]]
* [[R 컬럼수 확인]]
* [[Pandas 행수, 컬럼수 확인]]
* [[Pandas 행수, 컬럼수 확인]]
}}


[[분류: R 데이터프레임]]
[[분류: R 데이터프레임]]

2021년 10월 3일 (일) 02:36 기준 최신판

1 개요[ | ]

R 행수, 컬럼수 확인
df <- iris

# 행 수
nrow(df) # 150
dim(df)[1] # 150
# 컬럼 수
ncol(df) # 5
dim(df)[2] # 5
length(df) # 5
length(names(df)) # 5
# 행 수, 컬럼 수
dim(df)
# 기타
str(df)

2 같이 보기[ | ]

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