read_oa_folder: Read a folder of ObservAir data

Description Usage Arguments Value See Also Examples

View source: R/read_oa_folder.R

Description

Read a folder containing the resulting .txt file outputs from ObservAir

Usage

1
2
3
4
5
6
read_oa_folder(
  file_folder,
  time_zone,
  columns = c("TS", "Iref", "Isig", "ATN", "BC", "RH", "T", "FR", "Vbat", "GPSlat",
    "GPSlong")
)

Arguments

file_folder

Location of data files. Files in the folder should use the following naming conventions:

Data...

Data files should start with "Data". Example: "Data34_2021-07-01.txt".

Settings...

Settings file should start with "Settings". Only have one Settings file per folder. Example: Settings_Data34.txt.

time_zone

Character; valid Olson Name of time zone. Not sure which name to use? Run stringr::str_subset(OlsonNames(), "string_argument") with string_argument replaced with an area to see names. It is highly recommended to use a full name rather than a GMT argument.

columns

Character list, optional; List of column names as provided in the Settings file. If Settings file does not exist in the folder, you can list them here or use the provided default.

Value

Raw data frame containing the columns (either detected from the Settings file or specified), with an additional site_id column for the data source.

See Also

Other OA functions: wrangle_oa_meta(), wrangle_oa()

Examples

1
2
3
4
## Not run: 
read_oa_folder("data-raw/oa_moving", "America/Los_Angeles")

## End(Not run)

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