create_subsamples: create_subsamples

Description Usage Arguments Details Value Author(s)

Description

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.

Usage

1
2
create_subsamples(trait = "trait", timepoints = NULL, subsamples = NULL,
  subfun = "mean")

Arguments

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'.

Details

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'.

Value

vector of trait labels

Author(s)

Reinhard Simon


c5sire/fbdesign documentation built on May 13, 2019, 10:33 a.m.