date.subset: Restrict data to a single date

View source: R/dfmip.R

date.subsetR Documentation

Restrict data to a single date

Description

df must have a column "date" in format YYYY-MM-DD (date.format = 1) or MM/DD/YYYY (date.format = 2) Note that the date format was slow for string operations, so a datestr field will be added df must have a column "year" in format YYYY

Usage

date.subset(df, end.year, end.month, end.day, date.format)

Arguments

df

The input data frame

end.year

The last year to include in the output data frame

end.month

The last month to include in the output data frame

end.day

The last day to include in the output data frame

date.format

A numeric code for the date input format. 1: YYYY-MM-DD format, weather data; 2: MM/DD/YYYY format, human and mosquito data

Value

A data frame that only includes data up to the specified end day, month, year


akeyel/dfmip documentation built on Sept. 3, 2022, 1:26 a.m.