Description Usage Arguments Details Value Author(s)
Creates a vector of labels for a trait name to help gather data for different time points (TP) or sub samples (SS), that is plants from a plot or similar.
1 2 | create_subsamples(trait = "trait", timepoints = NULL, subsamples = NULL,
subfun = "mean")
|
trait |
a trait name |
timepoints |
integer > 0, default is NULL |
subsamples |
integer > 0, default is NULL |
subfun |
one of "mean", "max", "min", "mode", "variance", "sum". Default is 'mean'. |
The helper variables are created according to a simple schema by suffixing TP plus sequential number and SS plus sequential number separated by underscore (_). For subsamples an additional variable is added that calculates a statistic to summarize the subsamples like 'mean'.
vector of trait labels
Reinhard Simon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.