Description Usage Arguments Value Author(s) References
Summarize a continuous or discrete (factor) vector.
1 2 3 4 5 6 7 8 9 10 | SummarizeVar(
x,
group = rep(1, length(x)),
latex = TRUE,
decimalFactor = 0,
decimalContinuous = 2,
ContinuousSummaryFunction = SummarizeContinuousDefault,
FactorSummaryFunction = SummarizeFactorDefault,
...
)
|
x |
Vector of values. |
group |
Group identifiers to return summaries by group. |
latex |
Return LaTeX characters if |
decimalFactor |
The number of decimals to display in percentages for factor variables. This is passed to the |
decimalContinuous |
The number of decimals to display in percentages for numeric variables. This is passed to the |
ContinuousSummaryFunction |
Function to use to summarize a continuous variable; defaults to |
FactorSummaryFunction |
Function to use to summarize a factor variable; defaults to |
... |
Arguments to be passed to |
Formatted text in a vector or matrix.
Vinh Nguyen
This function was borrowed (and modified) from Vinh Nguyen's day2day
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.