Description Usage Arguments Value Author(s)
Creates a summary table stratified by a categorical variable. If being used for the generation of
a report, it is recommended to use the pander
function to format the table.
Supports the use of weighted data.
1 2 | summaryTable(vect, categories = c(), catname = "", missingValues = c(),
weights = c())
|
vect |
The vector of data to be summarized. It should be a continuous variable. |
categories |
The vector of categories. If left undefined, a simple summary of the vect vector will be performed. |
catname |
The name of the categories. Defaults to the name of the category vector. |
missingValues |
An optional vector containing the codes of the missing values. |
weights |
An optional vector containing the weights of the data. |
Returns a table of stratified summaries.
Phil Boileau, philippe.boileau (at) rimuhc.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.