%>% glimpse() df_sas
Rows: 30
Columns: 3
$ drug <fct> A, A, A, A, A, A, A, A, A, A, D, D, D, D, D, D, D, D, D, D, F, F,…
$ pre <dbl> 11, 8, 5, 14, 19, 6, 10, 6, 11, 3, 6, 6, 7, 8, 18, 8, 19, 8, 5, 1…
$ post <dbl> 6, 0, 2, 8, 11, 4, 13, 1, 8, 0, 0, 2, 3, 1, 18, 4, 14, 9, 1, 9, 1…
%>% summary() df_sas
drug pre post
A:10 Min. : 3.00 Min. : 0.00
D:10 1st Qu.: 7.00 1st Qu.: 2.00
F:10 Median :10.50 Median : 7.00
Mean :10.73 Mean : 7.90
3rd Qu.:13.75 3rd Qu.:12.75
Max. :21.00 Max. :23.00