Skip to contents

Create an AUDPC data frame for locations and emergence dates

Usage

audpc_dt(x)

Arguments

x

A data.table created by run_epicrop_model(), epicrop_sim() or any one of the disease specific helper functions.

Value

A data.table::data.table() suitable for mapping or other analysis. If dt is from run_epicrop_model() directly, the output will be a data.table with five columns: lat, lon, AUDPC, location, and emergence. If dt is from any of the helper functions or directly from epicrop_sim(), the output will be a data.table with two (or) four columns: lat, lon, AUDPC and emergence. *lat and lon columns must be in the original weather dataset for them to appear.