powered by
Very simple mechanistic model for plants.
ecocrop(crop, tmin, tavg, prec, rainfed=TRUE, ...) getCrop(name) data(ECOcrops)
An object of class 'ECOCROP', or the name of a crop as in getCrop
Vector of monthly minimum temperature (degrees C)
Vector of monthly average temperature (degrees C)
Vector of monthly precipitation (mm)
Logical. If FALSE, the crop is assumed to be irrigated
FALSE
Additinal arguments
Name of a crop (character). If missing a data.frame with all crop names is returned
Object of class ECOCROP
# NOT RUN { ecocrop('potato', 5:16, 15:26, runif(12)*100) getCrop('Acacia brachystachya Benth.') crop <- getCrop('Hot pepper') ecocrop(crop, 5:16, 15:26, rainfed=FALSE) # }
Run the code above in your browser using DataLab