read_otg_csv_wrapper: Read DASH OTG Data - Wrapper

View source: R/read_otg_csv_wrapper.R

read_otg_csv_wrapperR Documentation

Read DASH OTG Data - Wrapper

Description

A wrapper function for read_otg_csv(). The function imports .csv delimited files containing on-the-ground (OTG) data collected using the DASH protocol. This function can be performed on multiple (all if desired) "types" of OTG data at once to create a list of data frames, each containing data for one of the data types.

Usage

read_otg_csv_wrapper(
  path = ".",
  otg_type = c("surveyPoint_0.csv", "CU_1.csv", "Wood_2.csv", "Jam_3.csv",
    "Undercut_4.csv", "Discharge_5.csv"),
  otg_type_names = c("survey", "cu", "wood", "jam", "undercut", "discharge")
)

Arguments

path

A path to the directory containing the folders of interest. path should only contain folders (no files), and each of those folders should only contain files (no folders).

otg_type

what type of on-the-ground (OTG) data would the user like to deal with?

otg_type_names

an optional character vector that can be used to name each data frame of otg_type. If the otg_type_names argument is provided, it MUST be the same length as otg_type. If the default otg_type_names = NULL is used, data frames will be named using the otg_type character vector (i.e., the .csv file names).

Value

a list of data frames, each containing data from otg_type

Author(s)

Mike Ackerman


mackerman44/DASH documentation built on Sept. 5, 2024, 8:14 a.m.