The Data Exploration page's summary statistics: one row per subject (the
first row of each ID), then the minimum, percentiles, median, mean,
maximum, CV% and geometric mean of each numeric column.
Arguments
- data
A data frame (e.g. from
mvp_data()) or the path of a file.- columns
Columns to summarise (default: all numeric columns).
Examples
d <- data.frame(ID = 1:20, WT = seq(50, 107, 3), AGE = 31:50)
mvp_data_summary(d)
#> variable Min 5% 1st Qu. Median Mean 3rd Qu. 95% Max CV% gMean gMean CV%
#> 1 WT 50 52.9 64.2 78.5 78.5 92.8 104.2 107 22.6 76.5 23.8
#> 2 AGE 31 32.0 35.8 40.5 40.5 45.2 49.1 50 14.6 40.1 14.9