powered by
Subsets a PurpleAir Timeseries object by date. This function always filters to day-boundaries. For sub-day filtering, use pat_filterDatetime().
pat_filterDatetime()
Dates can be anything that is understood by lubridate::ymd() including either of the following recommended formats:
lubridate::ymd()
"YYYYmmdd"
"YYYY-mm-dd"
pat_filterDate( pat = NULL, startdate = NULL, enddate = NULL, days = NULL, weeks = NULL, timezone = NULL )
PurpleAir Timeseries pat object.
Desired start datetime (ISO 8601).
Desired end datetime (ISO 8601).
Number of days to include in the filterDate interval.
Number of weeks to include in the filterDate interval.
Olson timezone used to interpret dates.
A subset of the given pat object.
pat_filter
pat_filterDatetime
# NOT RUN { library(AirSensor) example_pat %>% pat_filterDate(startdate = 20180808, enddate = 20180815) %>% pat_multiPlot() # }
Run the code above in your browser using DataLab