kcf_sum | R Documentation |
Compute pre-selected set of descriptive statistics for provided vars, optionally by group. Speedboost via tidytable.
kcf_sum(data, sumvar, byvar = NULL)
data |
The data frame to summarize |
sumvar |
The variables to summarize; accommodates tidyselect helpers |
byvar |
The grouping variable for grouped summaries |
A data frame with descriptive stats: each var is a row; respective statistics are in column.
## Not run:
kcf_sum(mtcars, c(mpg, disp)) # summary stats for mpg and disp
kcf_sum(mtcars, c(mpg, disp), c(am)) # summary stats for mpg and disp by am
kcf_sum(mtcars, where(is.numeric)) # summary stats for all numeric vars
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.