R 행수, 컬럼수 확인

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 }}