descBy | R Documentation |
Describe numeric variables or categorical variables (must be in factor) according or not to another variable in a table.
descBy(data, vars, labels = NULL, by = NULL)
data |
name of the dataset |
vars |
the variables list to describe (numeric or factor) |
labels |
labels for the variables list |
by |
variable to compare (must be a factor and have at least two categories) |
a descriptive table
descBy(iris, "Sepal.Length", by = "Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.