pred_tpts: Predict thermal performance traits (TPTs)

Description Usage Arguments Value Examples

View source: R/pred.R

Description

This function makes a prediction on TPT values based on TPD

Usage

1
pred_tpts(tpc, Pmin)

Arguments

Pmin

The percentage of Pmax corresponding to Pmin

curve

A thermal-performance dataset (TPC) with "t" for temperature and "p" for performance as columns

Value

A vector of predicted TPTs

Examples

1
2
3
4
5
6
original_tpts <- data.frame(Topt = 25, Tb50 = 4, Tb80 = 2, Skw50 = -0.25, Skw80 = 0.15, Pmax = 10, Pmin = 0.1, CTmax = 27, CTmin = 20)
tpd <- gen_tpd(original_traits, 10, 0)
fit <- fit_tpd(tpd)
tpc <- gen_tpc(fit)
predicted_tpts <- pred_tpts(tpc,0.1)
cbind(tpts = c("original","predicted"),rbind(original_tpts,predicted_tpts))

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