describr objectdescribr.RdThis is the core object for describr package.
All information required to create a descriptive table for a data frame is
stored a describr-object.
describr(df, by = NULL, theme_new = theme_default(), pvalues = FALSE, totals = TRUE, caption = "")
| df | a data frame. |
|---|---|
| by | unquoted name of optional stratifying factor |
| theme_new | theme to use |
| pvalues | Flag indicating whether p-values for homogeneity null hypothesis should be printed if available. |
| total | Flag indicating whether all descriptors should also be given for the total sample. |
An object of class describr < list with fields:
dfdata frame to describe
byvariable name by which to stratify the description (character or NULL)
corenamed list with names corresponding
to the variables in df which will b described and eac element
is a list of descriptor objects osed to describe that variable.
TODO: rename!
group_descriptorslist of descriptors used for the grouping
(stratifying) variable by.
pvaluesBoolean flag indicating whether p-values should be displayed
totalsBoolean flag indicating whether a total column should be included when the description is stratified by a grouping factor.
theme_newThe theme to use for plotting. TODO: rename