pat_trimDate {AirSensor}R Documentation

Trim a PurpleAir Timeseries object to full days

Description

Trims the date range of a pat object to local time date boundaries which are within the range of data. This has the effect of removing partial-day data records and is useful when calculating full-day statistics.

Usage

pat_trimDate(pat = NULL)

Arguments

pat

PurpleAir Timeseries pat object.

Value

A subset of the given pat object.

Examples

library(AirSensor)

UTC_week <- pat_filterDate(
  example_pat, 
  startdate = 20180808, 
  enddate = 20180815,
  timezone = "UTC"
)

pat_multiPlot(UTC_week)

local_week <- pat_trimDate(UTC_week)
pat_multiPlot(local_week)


[Package AirSensor version 1.0.8 Index]