Learn R Programming

ZeBook (version 0.4)

maize.simule240: Wrapping function to run maize model on a matrix of parameter (virtual design) and give Biomass at day240

Description

Wrapping function to run maize model on a matrix of parameter (virtual design) and give Biomass at day240

Usage

maize.simule240(X, weather, sdate, ldate, all = FALSE)

Arguments

X
: matrix of n row vectors of 7 parameters
weather
: weather data.frame for one single year
sdate
: sowing date
ldate
: last date
all
: if you want a matrix combining X and output (default = FALSE)

Value

  • a matrix of biomass at day=240 for all combinations of parameters of X

Examples

Run this code
sy="18-2006"
weather = maize.weather(working.year=strsplit(sy,"-")[[1]][2], working.site=strsplit(sy,"-")[[1]][1],weather_all=weather_EuropeEU)
maize.simule240(maize.define.param(),weather, sdate=100, ldate=250, all=FALSE)

Run the code above in your browser using DataLab