R summary()

Jmnote (토론 | 기여)님의 2019년 5월 25일 (토) 01:12 판 (Jmnote님이 R언어 summary() 문서를 R summary() 문서로 이동하면서 넘겨주기를 덮어썼습니다)

1 개요

R summary()
  • "Object Summaries → 객체 요약"

2 data.frame 요약

summary(BOD)
#      Time           demand     
# Min.   :1.000   Min.   : 8.30  
# 1st Qu.:2.250   1st Qu.:11.62  
# Median :3.500   Median :15.80  
# Mean   :3.667   Mean   :14.83  
# 3rd Qu.:4.750   3rd Qu.:18.25  
# Max.   :7.000   Max.   :19.80
summary(iris)
#  Sepal.Length    Sepal.Width     Petal.Length    Petal.Width   
# Min.   :4.300   Min.   :2.000   Min.   :1.000   Min.   :0.100  
# 1st Qu.:5.100   1st Qu.:2.800   1st Qu.:1.600   1st Qu.:0.300  
# Median :5.800   Median :3.000   Median :4.350   Median :1.300  
# Mean   :5.843   Mean   :3.057   Mean   :3.758   Mean   :1.199  
# 3rd Qu.:6.400   3rd Qu.:3.300   3rd Qu.:5.100   3rd Qu.:1.800  
# Max.   :7.900   Max.   :4.400   Max.   :6.900   Max.   :2.500  
#       Species  
# setosa    :50  
# versicolor:50  
# virginica :50

3 factor 요약

class(warpbreaks$tension)
## [1] "factor"
warpbreaks$tension
##  [1] L L L L L L L L L M M M M M M M M M H H H H H H H H H L L L L L L L L L M M
## [39] M M M M M M M H H H H H H H H H
## Levels: L M H
summary(warpbreaks$tension)
##  L  M  H 
## 18 18 18

4 같이 보기

5 참고

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