get_for_dates: Get rows for the given dates

Description Usage Arguments

View source: R/utils.R

Description

Returns rows matching the provided dates.

Usage

1
get_for_dates(data, dates, lag = 0)

Arguments

data

Data frame, typically loaded using load_soi/iod/sam, which has integer year and month columns.

dates

Dates to grab corresponding rows for. Can be any type supporting the format command (e.g., Date, POSIXlt, POSIXct)

lags

Number of months to lag matching. For instance, lag = 1 corresponds to matching to date to the previous month in the data.


mbertolacci/climatedata documentation built on Sept. 13, 2021, 11 a.m.