어떤 변수(열) 전체의 평균, 표준편차, 사분위수 등 기초통계량 구할 때 : summary()


집단별로 나누어 구할 때 : group_by() %>% summarise()

- group_by() : 변수 지정하여 항목별 데이터 분리

- summarise() : 집단별 요약 통계량 산출


'programing > R studio' 카테고리의 다른 글

%in% 과 match(), slice()  (0) 2018.05.07
ggplot2 - geom_line, color, fill  (0) 2018.05.07
ave() - 아직 정확히 모르겠음  (0) 2018.05.04
%in% 와 match(), merge()  (0) 2018.05.04
dplyr 패키지  (0) 2018.05.04

+ Recent posts