ch.subsetDFbyGroups | R Documentation |
This function subsets a dataframe by the factorial combination of grouping columns. It outputs a list with each subsetted dataframe
ch.subsetDFbyGroups(data, grpCols)
data |
the dataframe to be subsetted. |
grpCols |
a vector of strings specifying the column names of the grouping variables. |
a list with all the subsetted dataframes
ch.subsetDFbyGroups (myDataframe, c("gender", "condition"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.