parse_dates: Parse date options

Description Usage Arguments Details Value

View source: R/db_tables.R

Description

Used internally to parse the date arguments and return a start/end date to use in the db filter.

Usage

1
parse_dates(years, start_date, end_date)

Arguments

years

int or vector of ints for the years desired. years must be consecutive.

start_date

str in the form 'YYYY-MM-DD'

end_date

str in the form 'YYYY-MM-DD'

Details

If years is set then create a start/end date for the db query. In this case start_date/end_date args will be ignored. If all is NULL then set end_date to the current date and start_date at the earliest possible date.

Value

list with start_date end_date options.


sdtaylor/phenometR documentation built on Sept. 15, 2021, 6:35 a.m.