asuv {asreml} | R Documentation |
Make a univariate dataframe from a multi-variate one.
asuv(stack, data, response = "y", traitName = "trait", traitsWithinUnits = TRUE)
stack |
A character or numeric vector identifying the columns that form the multi-variate response. These columns are concatenated into a vector. |
data |
The univariate data frame object. |
response |
A character string to be used as the name of the concatenated
response vector; the default is |
traitName |
A character string to name the resulting column of multi-variate
response names; the default is |
traitsWithinUnits |
The sort order of the returned data frame. The default,
|
This is a stack operation on the multi-variate data frame based on
the nominated response columns. These are concatenated into a
vector and the remaining columns of the input data frame repeated
accordingly. A "trait"
column is created from the names of
the multi-variate response columns.
The stacked data frame.