chooseGroupingVariables | R Documentation |
To be useful for grouping a variable needs to be a character or a factor, and to have a number of values greater than one but less than the number of samples.
chooseGroupingVariables(df)
df |
Input data frame |
out A list of valid column names
# `airway` contains info on the samples it's based on
require(airway)
data(airway, package = "airway")
# However, not all variables are useful for grouping data. Some have a
# different value for every sample, one has the same value for all of them.
colData(airway)
# So just pick the variables that ARE useful
chooseGroupingVariables(data.frame(colData(airway)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.