
An S4 class to store a crop's life history for the endosymbiont model
Source:R/crop.R
crop-class.RdAn S4 class to store a crop's life history for the endosymbiont model
Slots
nameThe name of the crop
heal_timeHalf-time in days for plant recovery from endosymbiont infection
sowing_dateDate crop is sown in YYYY-MM-DD format
emergence_dateDate crop emerges in YYYY-MM-DD format
harvest_dateDate crop is harvested in YYYY-MM-DD format
carrying_capacityFunction defining proportion of pest carrying capacity based on days after emerging
densityCrop density (m2)
Examples
canola <-
new("crop",
name = "Canola",
heal_time = 2,
sowing_date = "2022-04-05",
emergence_date = "2022-04-10",
harvest_date = "2022-11-01",
carrying_capacity = EndoSim:::fit_sigmoid(1, 0.1, 80),
density = 35)
canola
#> Canola crop sown on 2022-04-05
#> sown at a density of 35 plants per m2
#> emerging on 2022-04-10 and harvested on 2022-11-01