read_local_folder: Read a Local Folder of PurpleAir Data

Description Usage Arguments Value See Also Examples

View source: R/read_local_folder.R

Description

Read a folder containing PurpleAir CSV data.

Usage

1
2
3
4
5
6
read_local_folder(
  folder_path = input_path,
  read_primary = TRUE,
  read_secondary = TRUE,
  pattern = NULL
)

Arguments

folder_path

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

read_primary

Logical; read primary data

read_secondary

Logical; read secondary data

pattern

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

Value

Raw R data frame

See Also

read_local_single() to read single files in a folder.

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

Examples

1
2
3
4
5
## Not run: 
read_local_folder(folder_path = "data-raw/local")
read_local_folder(folder_path = "data-raw/local", pattern = "Lincoln")

## End(Not run)

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