gen_pop_tpd: Generate a population's thermal-performance data

Description Usage Arguments Value

View source: R/gen_pop_tpd.R

Description

Generate a thermal-performance data set for a population multiple individiuals

Usage

1
gen_pop_tpd(N, Topt, CTmax, CTmin, Pmax, Pmin, Error, Samples, Degree)

Arguments

N

Number of individiuals forming the population

Topt

The thermal optimum.

CTmax

The critical thermal maximum. Needs to be > Topt

CTmin

The critical thermal minimum. Needs to be < Topt

Pmax

The maximal performance capacity.

Pmin

The mimimal performance capacity. Needs to be < Pmax

Error

The amount of error/noise to be introduced to generate unique data. In units of standard deviation.

Samples

Number of samples to be extracted for each individual

Degree

Degree of the polynomial regression that will be created to extract the data.

Value

A dataset of three columns: "ID" for individual identifier, "T" for temperature and "P" for performance.


ggcostoya/tpcurves2 documentation built on Jan. 1, 2021, 2:19 a.m.