data.summary | R Documentation |
Produces a table with a summary of the statistics for a specific column of an input data.frame by a group of values defined by a group defined by another column.
data.summary(data, variable, group.names)
data |
Input data.frame to be analyzed. |
variable |
A string with the name of the column to be analyzed. |
group.names |
A string with the name of the column indicating the groups. |
It returns a list that is a combination of the lists in the input list.
If the list is not a nested list of list the original input is returned.
data.summary(data = mtcars, variable = "mpg", group.names = "disp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.