read_local_single: Read a single local PurpleAir document of interest

Description Usage Arguments Value See Also Examples

View source: R/read_local_single.R

Description

Read specific file by location, skipping columns as needed; extracting info from title. Intended to be used in iteration, as with read_local_folder.

Usage

1
2
3
4
5
read_local_single(
  folder_path,
  single_file_path,
  selects = c("pm25_cf1", "pm25_atm", "temperature", "humidity")
)

Arguments

folder_path

Character; a file path to the folder containing the file of interest

single_file_path

Character; the full file path to the file of interest

selects

Character list of the renamed variables to keep. Time stamp automatically kept.

Value

Data frame of input file with relevant info in columns

See Also

read_local_folder() for reading a full folder.

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

Examples

1
2
3
4
## Not run: 
read_local_single("data-raw/local", "data-raw/local/36th & SE Woodward (outside) (45.501722 -122.626231) Primary Real Time 07_01_2020 07_07_2020.csv")

## End(Not run)

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