gen_tpd: Generate an individual's thermal performance data (TPD)

Description Usage Arguments Value Examples

View source: R/gen.R

Description

This function randomly generates an idnividual's TPD based on some TPTs, the amount of samples and the specified error.

Usage

1
gen_tpd(TPTs, Samples, Error)

Arguments

TPTs

A data frame of TPTs

Samples

The number of samples to be generated.

Error

The amount of error to be introduced in units of standard deviation.

Value

A thermal-performance dataset (TPD)

Examples

1
2
3
4
traits <- data.frame(Topt = 25, Tb50 = 4, Tb80 = 2, Skw50 = -0.25, Skw80 = 0.15, Pmax = 10, Pmin = 0.5, CTmax = 27, CTmin = 20)
tpd <- gen_tpd(traits, 10, 1)
tpd
plot(tpd)

ggcostoya/momentum documentation built on Feb. 14, 2021, 6:12 p.m.