Description Usage Arguments Details Value Author(s) See Also Examples
Meant to be used in creating R matrix to be exported as a table
1 |
data |
Data frame where nvar and gvar can be found |
fvar |
Character string of column in data of factor data |
gvar |
Character string of column in data of grouping data |
level |
Character string of level of fvar to be reported. If null then all levels are printed |
digits |
Number of decimals to be printed |
table(fvar,gvar) and 100*prop.table(table(fvar,gvar),2) are used to create N (%) for each level of fvar by gvar. If only 1 level is needed (i.e. Yes/No variable only needs Yes to be reported) then level can specify which level to print
Returns a vector of strings of N (%) from table(fvar,gvar) with columns printed first. If gvar is NULL then N (%) of fvar is returned.
University of Wisconsin-Madison Biostatistics and Medical Informatics Department, Scott Hetzel M.S.
chisqFunc
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.