wrangle_local: Wrangle local raw PurpleAir data frames

Description Usage Arguments Value See Also Examples

View source: R/wrangle_local.R

Description

Applying various quality control functions, time rounding, and pivots to provide a more managable data frame of spatio-temporal atmospheric data.

Usage

1
wrangle_local(data_local_raw, data_local_meta)

Arguments

data_local_raw

Character; the file path for the folder that contains the monitor data frames

data_local_meta

Character, optional; filter for a specific location (by label in the file title)

Value

A data frame with quality-controlled values (apply_qc), timezone correction (adjust_timezone), and ambient temperature calculations (ambient temperature).

See Also

apply_qc(), adjust_temperature(), ambient_temperature()

Other PA local functions: read_local_folder(), read_local_meta(), read_local_single()

Examples

1
2
3
4
example_local_raw <- read_local_folder(folder_path = "data-raw/local")
example_local_meta <- read_local_meta(folder_path = "data-raw/local", timezone = "America/Los_Angeles")
wrangle_local(example_local_raw, example_local_meta)
remove(example_local_raw, example_local_meta)

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