Calculate summary statistics
get_sum_stats( df, sum_vars, group_vars = NULL, sum_funcs = list(mean = base::mean, sd = stats::sd, median = stats::median, iqr = stats::IQR) )
df | a |
---|---|
sum_vars |
|
group_vars |
|
sum_funcs | either function or list of functions. By default, uses
|
tibble object containing summarized data.
David Zhang https://github.com/dzhang32/rutils
iris_summary <- get_sum_stats( iris, sum_vars = "Sepal.Length", group_vars = "Species" )