- df
A dataframe with multi value traits. This can be in wide or long format,
data is assumed to be long if traitCol, valueCol, and labelCol are present.
- group
Vector of column names for variables which uniquely identify groups
in the data to summarize data over. Typically this would be the design variables
and a time variable.
- mvCols
Either a vector of column names/positions representing multi value
traits or a character string that identifies the multi value trait columns as a
regex pattern. Defaults to "frequencies".
- n_per_group
Number of rows to return for each group.
- outRows
Optionally this is a different way to specify how many rows to return.
This will often not be exact so that groups have the same number of observations each.
- keep
A vector of single value traits to also average over groups, if there are
a mix of single and multi value traits in your data.
- parallel
Optionally the groups can be run in parallel with this number of cores,
defaults to 1 if the "mc.cores" option is not set globally.
- traitCol
Column with phenotype names, defaults to "trait".
- labelCol
Column with phenotype labels (units), defaults to "label".
- valueCol
Column with phenotype values, defaults to "value".
- id
Column that uniquely identifies images if the data is in long format.
This is ignored when data is in wide format.