contin_results_csv: Import continuous result information from a template csv...

View source: R/contin_results_csv.R

contin_results_csvR Documentation

Import continuous result information from a template csv file.

Description

Retrieve monitoring results from Oregon DEQ's continuous data submission template v2.03 that has been saved as a csv This function will read all csv files from a selected directory, combine them all using rbind and return them as a single dataframe. The column names and date-time formats must be the same in every csv file. Column names are made into syntactically valid names acceptable by R.

Usage

contin_results_csv(path = NULL, format = "%Y/%m/%d %H:%M:%S")

Arguments

path

The path to the directory where the csv files are saved. Default is NULL which implements the choose.dir function on windows OS or codeselectDirectory on Mac/Linux OS when using Rstudio. If Rstudio is not available a path must be provided.

format

A character string giving the date-time format of the input from columns 'Activity.Start.Date' and 'Activity.Start.Time'. Same as used by strptime. The format is used for conversion to POSIXct where the timezone tz='UTC'. The default is the same as what is required in the continuous data submission template: "%Y/%m/%d %H:%M:%S".

Value

data frame


DEQrmichie/odeqcdr documentation built on Feb. 15, 2025, 10:01 a.m.