aedes.Rd
These functions are used to convert an Epidemic Prediction Initiative Aedes Forecasting Challenge-formatted csv file to a predx
data frame.
import_aedes_csv(file, add_vars = NULL) export_aedes_csv(x, filename = NULL, overwrite = F) aedes_expected()
file | A csv file formatted for the EPI Aedes Forecasting Challenge. |
---|
A predx
data frame.
csv_tempfile <- tempfile() write.csv(aedesdemo, csv_tempfile, row.names=F) import_aedes_csv(csv_tempfile)#> # A tibble: 190 x 9 #> location target type unit due_date month team predx_class predx #> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <list> #> 1 California-Al… Ae. aegy… binary pres… 2019-03… April null Binary <Bina… #> 2 California-Al… Ae. albo… binary pres… 2019-03… April null Binary <Bina… #> 3 California-Bu… Ae. aegy… binary pres… 2019-03… April null Binary <Bina… #> 4 California-Bu… Ae. albo… binary pres… 2019-03… April null Binary <Bina… #> 5 California-Co… Ae. aegy… binary pres… 2019-03… April null Binary <Bina… #> 6 California-Co… Ae. albo… binary pres… 2019-03… April null Binary <Bina… #> 7 California-Co… Ae. aegy… binary pres… 2019-03… April null Binary <Bina… #> 8 California-Co… Ae. albo… binary pres… 2019-03… April null Binary <Bina… #> 9 California-Fr… Ae. aegy… binary pres… 2019-03… April null Binary <Bina… #> 10 California-Fr… Ae. albo… binary pres… 2019-03… April null Binary <Bina… #> # … with 180 more rows