View source: R/simple_descriptives2.R
des.flex | R Documentation |
Simple descriptive statistics
des.flex(
data,
vars,
param_set = "standard",
by = NA,
by_total = TRUE,
deci = 1,
option = r.flex.opts,
title = ""
)
data |
data.frame with variables |
vars |
variables as formula. e.g. 1 ~ var1 + var2 |
param_set |
list of parameters with order in the table (as strings):
|
by |
section variable, default=FALSE, otherwise put variable name in quotes, e.g. "section_var". Section variable should have labels |
by_total |
boolean. If there is a section variable, should the total result be included in descriptives (default=TRUE) |
deci |
number of decimals for M, everything else is done automatically (default=1) |
option |
options variable. To change, modify r.flex.opts variable created by im_on_fire() |
title |
table title. If not set it will be determined automatically |
list with elements
type - table type - used for inserting in word document
title - used for table title. Can be set manually or automatically
section - section variable title
table - flextable with results
tab.df - results as data.frame
orientation - suggested page orientation (P/L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.