View source: R/SummarizeVariable.R
SummarizeVariable | R Documentation |
Summarizes a numeric or categorical variable for plotting
SummarizeVariable(
x,
type = c("Average", "Sum", "Percentage")[1],
weights = NULL,
subset = NULL,
category = NULL
)
x |
The input variable to summarize |
type |
The type of summary statistic to output. This should be one of 'Average', 'Sum', 'Most frequent' or 'Percentage'. |
weights |
Sampling or replication weights. This is a numeric vector of the same length as |
subset |
Option logical vector of the same length as |
category |
A comma-seperated list of the name or indices of the categories to include for 'Percentage'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.