Description Usage Arguments Value See Also Examples
View source: R/sensor_filterDate.R
Subsets an AirSensor object by date.
Dates can be anything that is understood by lubrdiate::ymd()
including either of the following recommended formats:
"YYYYmmdd"
"YYYY-mm-dd"
1 2 3 4 5 6 7 8 |
sensor |
An AirSensor object. |
startdate |
Desired start datetime (ISO 8601). |
enddate |
Desired end datetime (ISO 8601). |
days |
Number of days to include in the filterDate interval. |
weeks |
Number of weeks to include in the filterDate interval. |
timezone |
Olson timezone used to interpret dates. |
A subset of the given sensor object.
sensor_filter
sensor_filterMeta
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(AirSensor)
example_sensor %>%
sensor_extractData() %>%
dplyr::pull("datetime") %>%
range()
example_sensor %>%
sensor_filterDate(
startdate = "2018-08-21",
enddate = "2018-08-28",
timezone = "UTC"
) %>%
sensor_extractData() %>%
dplyr::pull("datetime") %>%
range()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.