subset.sql.mydata: Subsets the Data

Description Usage Arguments Value Examples

View source: R/data_dengue_fxns.R

Description

subset.sql.mydata selects ntps time points from the entire data set starting with the year and month or week selected by the user

Usage

1
2
3
## S3 method for class 'sql.mydata'
subset(years = NULL, year.start = 2010,
  cadence = "month", cadence.start = 1, ntps = 12, cases = NULL)

Arguments

years

A vector of years

year.start

Start year for subseting data

cadence

String, the cadence of the data: month, week, day

cadence.start

Start month/week for subseting data

ntps

Length of subset data

cases

A data frame with year, month/week, ndays and cases information

Value

cases A data frame of length ntps starting with the requested month/week and year

Examples

1
subset.mydata(year.start = 2010, cadence.start = 1, ntps = 12, cases = mydata)

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