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

View source: R/CT_cleanup.R

CT_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

CT_cleanup(
  data.path,
  output.path,
  path.pattern,
  tf.write = FALSE,
  tf.recursive = FALSE,
  hobo.cal = FALSE,
  cond.range = "high"
)

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 CT logger data within the specified file path

tf.write

Logical parameter indicating whether to save output files in an output folder. Default = FALSE.

tf.recursive

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

hobo.cal

Logical parameter indicating whether the .hobo file has been pre-calibrated using HOBOware software and exported as a processed .csv. Default = FALSE

cond.range

Character string or object indicating whether conductivity was recorded in High ("high"), Low ("low"), or both ("highlow") ranges. Default = "high"

Value

For every imported CT data file, one tidied file with temperature-compensated conductance is exported and returned


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