WL_cleanup: Import, clean up, and export multiple raw...

View source: R/WL_cleanup.R

WL_cleanupR Documentation

Import, clean up, and export multiple raw conductivity-temperature, CT, data files from the HOBO CT Logger

Description

This function loads all raw .csv files within the data.path folder. It removes the first row of each file containing logger information, then retains column headers. Unnecessary columns are removed, and the remaining columns are renamed as needed for simplicity and consistency. Any rows containing NA's are dropped.

Usage

WL_cleanup(
  data.path,
  output.path,
  path.pattern,
  tf.write = FALSE,
  tf.recursive = FALSE
)

Arguments

data.path

Path to the input files

output.path

Path for the output files

path.pattern

Character string or object referencing a character string that identifies WL logger data within the specified file path

tf.write

Logical parameter indicating whether to save output files in an output folder. No default.

tf.recursive

Logical parameter indicating whether to search within folders at the data.path. Default = FALSE

Value

For every imported water level data file, one tidied file is exported and returned


dbarnas/mooreasgd documentation built on Jan. 3, 2023, 7:10 a.m.