change_dates: change_dates

Description Usage Arguments Details Value See Also Examples

View source: R/query_enedis.R

Description

Alter the start and end date for a enedis data query

Usage

1
change_dates(form_query, end_date, start_date, by_period)

Arguments

form_query

a list with url, query and input like daily_month or hourly_day

end_date

the end date

start_date

the start date

by_period

a negative time interval to compute start_date from end_date. Ignored if start_date is provided. Passed as by argument to seq.POSIXt

Details

Change les dates de d<c3><a9>but et de fin pour une requ<c3><aa>te afin d'obtenir des relev<c3><a9>s

Value

an updated form query

See Also

daily_month

hourly_day

query_daily_month

Examples

1
2
myquery <- change_dates(daily_month, by_period = "-2 months")
myquery <- change_dates(hourly_day, by_period = "-10 days")

achey2016/rlinky documentation built on May 18, 2019, 1:34 p.m.