| asuv {asreml} | R Documentation |
Univariate data frame
Description
Function that makes a univariate data frame from a multi-variate one.
Usage
asuv(
stack,
data,
response = "y",
traitName = "trait",
traitsWithinUnits = TRUE
)
Arguments
stack |
A character or numeric vector identifying the columns that form the multi-variate response. These columns are concatenated into a vector. |
data |
The multi-variate data frame. |
response |
A character string to be used as the name of the concatenated
response vector (default = |
traitName |
A character string to name the resulting column of multi-variate
response names (default = |
traitsWithinUnits |
The sort order of the returned data frame. If |
Details
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.
Value
The stacked data frame.