wrangle_data: Wrangle PurpleAir PM Data

Description Usage Arguments Value See Also Examples

View source: R/wrangle_data.R

Description

Apply quality control functions (apply_qc), timezone adjustments (unit_convert and adjust_timezone), and temperature conversions (ambient_temperature) to a provided raw dataset.

Usage

1
2
3
4
5
wrangle_data(
  raw_pm_data = raw_data,
  raw_meta_data = raw_meta,
  drop_high = input_drop_hi
)

Arguments

raw_pm_data

The dataset which to wrangle.

raw_meta_data

Monitor meta data that apply_qc and adjust_timezone will rely upon

drop_high

Logical; see drop_hi in apply_qc.

Value

Data frame with rows removed from quality control, timezone adjusted to be that of the location, and improved temperature values (ºC and ambient calculated for both ºF and ºC).

See Also

apply_qc(), adjust_timezone(), and ambient_temperature()

Other PA API functions: get_area_pas(), get_area_pat(), get_ids()

Examples

1
wrangle_data(slice(july_api_raw, 1:5), july_api_raw_meta, drop_high = TRUE)

gmcginnis/AirVizR documentation built on Dec. 20, 2021, 11:49 a.m.