View source: R/raws_filterDate.R
raws_filterDate | R Documentation |
Subsets a raws_timeseries object by date. This function always filters to day-boundaries.
Dates can be anything that is understood by lubridate::ymd()
including either of the following recommended formats:
"YYYYmmdd"
"YYYY-mm-dd"
raws_filterDate(
rawsObject = NULL,
startdate = NULL,
enddate = NULL,
timezone = NULL,
unit = "sec",
ceilingStart = FALSE,
ceilingEnd = FALSE
)
rawsObject |
raws_timeseries object. |
startdate |
Desired start datetime (ISO 8601). |
enddate |
Desired end datetime (ISO 8601). |
timezone |
Olson timezone used to interpret dates. |
unit |
Units used to determine time at end-of-day. |
ceilingStart |
Logical instruction to apply
|
ceilingEnd |
Logical instruction to apply
|
A subset of the given raws_timeseries object.
The returned data will run from the beginning of startdate
until
the beginning of enddate
– i.e. no values associated
with enddate
will be returned. The exception being when
enddate
is less than 24 hours after startdate
. In that case, a
single day is returned.
raws_filter
library(RAWSmet)
data201708 <-
example_cefa_Saddle_Mountain %>%
raws_filterDate(20170801, 20170901, timezone = "America/Los_Angeles")
head(data201708$data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.