meantbl | R Documentation |
creates mean tables from binary suites
meantbl(
x,
digs = 2,
ftouse = mean,
rwnames = "norowname",
rwn_asvar = FALSE,
rwn_asvar_lab = "variable",
perc = FALSE,
cnt = "none"
)
x |
dataset containing only binary variables |
digs |
digits to round the result to. default is 2 |
ftouse |
function to use for calculations. default is mean |
rwnames |
vector of row names to use. default is none |
rwn_asvar |
boolean indicating whether to make the row names the first variable in the returned dataset. default is FALSE |
rwn_asvar_lab |
the variable name for the row name variable. to see this rwn_asvar should be TRUE. default is 'variable' |
perc |
boolean indicating if the results should be formatted as a percent |
cnt |
should an extra column be added that provides the counts as well as the percentages |
meantbl_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.