derive.trait.Rd
Performs an arithmetic function, FUN, over a series of traits and returns the result as a derived trait. Traits must be specified as either lists or single row data frames, and must be either single data points or normally distributed. In the event one or more input traits are normally distributed, the resulting distribution is approximated by numerical simulation. The output trait is effectively a copy of the first input trait with modified mean, stat, and n.
derive.trait(FUN, ..., input = list(...), var.name = NA, sample.size = 10^6)
a copy of the first input trait with mean, stat, and n reflecting the derived trait
input <- list(x = data.frame(mean = 1, stat = 1, n = 1))
derive.trait(FUN = identity, input = input, var.name = 'x')
#> mean stat n vname
#> 1 0.9999624 0.9996339 1 x