두 집단 기본 통계량을 코드 한 줄로 끝내는 방법
Package : arsenal
#1. source data
glimpse(df_summary)
#2. arsenal로 통계표 구하기
library(arsenal)
stat_tbl <- tableby(from~ . ,data=df_summary[,-1])
summary(stat_tbl)
참고 : thatdatatho.com/2018/08/20/easily-create-descriptive-summary-statistic-tables-r-studio/
How to Easily Create Descriptive Summary Statistics Tables in R Studio - By Group
We are going over 9 of my favourite summary statistics packages in R Studio. You'll learn how to create descriptive summary statistics tables in r by groupings and how to customize each table individually.
thatdatatho.com