summary.TD {statgenSTA} | R Documentation |
Summarizing objects of class TD
Description
summary
method for class TD
.
Usage
## S3 method for class 'TD'
summary(
object,
...,
trial = names(object),
traits,
groupBy = NULL,
what = if (!is.null(groupBy)) {
c("nObs", "mean", "sd")
} else {
c("nObs",
"nMiss", "mean", "median", "min", "max", "firstQ", "thirdQ", "var")
}
)
Arguments
object |
An object of class TD. |
... |
Further arguments - currently not used. |
trial |
A character string specifying the trial to be summarized. |
traits |
A character vector specifying the traits to be summarized. |
groupBy |
A character string specifying a column in TD by which the
summary should be grouped. If |
what |
A character vector indicating which summary statistics should be
computed. If
|
Value
A table containing the selected summary statistics.
See Also
Other functions for TD objects:
TD
,
getMeta()
,
plot.TD()
Examples
## Summarize TDHeat05.
summary(TDHeat05,
traits = "yield")
## Summarize TDHeat05 grouping by repId.
summary(TDHeat05,
traits = "yield",
groupBy = "repId")