pat_trimDate: Trim a PurpleAir Timeseries object to full days

Description Usage Arguments Value Examples

View source: R/pat_trimDate.R

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

1

Arguments

pat

PurpleAir Timeseries pat object.

Value

A subset of the given pat object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

AirSensor documentation built on March 13, 2021, 1:07 a.m.