Description Usage Arguments Value Examples
This function calculates potato late blight risk using BlightR model. The risk needs to be calculated for a single location, so if the calculation is necessary for multiple locations, data for each location needs to run separately.
1 2 |
data |
The weather data formated as |
max_na |
Maximum proportion of missing values. Set to 0.01 by default. |
temporal_res |
By default, the teporal resolution of the output is daily. By changing the argument |
model_parameters |
resoulution of the final data to be returned, daily or hourly. If hourly is selected, outputst are returned at noon. |
This function returns a data.frame
including columns:
date Date formated as "yyyy-mm-dd"
spor Sporulation risk.
spor_cond Conditions for sporulation.
inf Infection risk.
surv_prob Spore mortality.
risk_si Risk as sum of infection and sporulation reduced by moratlity.
risk_mi
risk Risk as product of sporulation, spore survival and infection.
1 2 3 4 | library(epiCrop)
weather <- system.file("data/blightR_weather.csv", package="epiCrop")
out <- system.time(BlightR(weather))
head(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.