summaryTable | R Documentation |
Provides summary stats for a data frame, possibly by a two-level factor
summaryTable(d, vars = NULL, fac = NULL, statscols = T, sigfigs = 2, ...)
d |
Data frame |
vars |
Named vector. Names are variables to summarize, values are human readable versions., Default: NULL |
fac |
Character value of grouping variable, Default: NULL |
statscols |
Include Cohen's d and a Mann-Whitney test if a fac is provided, Default: T |
sigfigs |
Number of significant figures to report, Default: 2 |
Either a single kable object, or a list of two kable objects
select
tibble
glue
map
kable
add_header_above
## Not run:
if(interactive()){
summaryTable(mtcars, fac="am", vars = c(mpg="Miles per gallon", hp="Horsepower"))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.