within_t_thresh: within_t_thresh

Description Usage Arguments Examples

Description

are a crop's temperature thresholds satisfied by the passed monthly temperature data ? TODO currently doesn't take into account growing season length but does need to.

Usage

1
2
within_t_thresh(crop, month_tmin = NULL, month_tmax = NULL,
  min_or_max = "both")

Arguments

crop

the crop either a name or ecocrop object

month_tmin

min temp by month

month_tmax

max temp by month

min_or_max

'both', min','max'

Examples

1
2
3
4
5
6
#0
within_t_thresh('potato', month_tmin = rep(0,12), month_tmax = rep(50,12))
#1
within_t_thresh('potato', month_tmin = rep(20,12), month_tmax = rep(20,12))
#just min or max. e.g. specify max and it ignores min
within_t_thresh('potato', month_tmin = rep(0,12), month_tmax = rep(20,12), min_or_max='max')

AndySouth/climcropr documentation built on May 20, 2019, 5:08 p.m.