AvgClim: Climate Data Processing.

Description Usage Arguments Value Examples

View source: R/data_fxns.R

Description

This function is generally called by get.mysql() to fill future climate dates with appropriate historic averages. After padding incidence with NAs, check climate data for NAs and replace with historic average. Historic average to be calculated from all years available.

Usage

1
2
AvgClim(ident_data = NULL, clim_cols = NULL, all_years_ident = NULL,
  cadence = NULL)

Arguments

ident_data

A mydataframe from 'mydata' for a single identifier's time-series mydata.

clim_cols

The names of climate columns in ident_data (should match with column names in all_years_ident).

all_years_ident

The output of get_disease_data containing all available years of mydata.

cadence

An integer that specifies incidence cadence.

Value

ident_data The same mydataframe, but with added historic averages for future climate dates.

Examples

1

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.