BlightR: BlightR model.

Description Usage Arguments Value Examples

View source: R/BlightR.R

Description

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.

Usage

1
2
BlightR(data, max_na = NULL, temporal_res = "daily",
  model_parameters = "default")

Arguments

data

The weather data formated as data frame.

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 temporal_res = "hourly" user will get daily values attached at 12.

model_parameters

resoulution of the final data to be returned, daily or hourly. If hourly is selected, outputst are returned at noon.

Value

This function returns a data.frame including columns:

Examples

1
2
3
4
library(epiCrop)
weather <- system.file("data/blightR_weather.csv", package="epiCrop")
out <- system.time(BlightR(weather))
head(out)

mladencucak/epiCrop documentation built on April 30, 2020, 10:13 a.m.