pH_cleanup: Clean up raw pH data file from the HOBO pH Logger

View source: R/pH_cleanup.R

pH_cleanupR Documentation

Clean up raw pH data file from the HOBO pH Logger

Description

This function loads a raw pH file. It searches a directory for the correct logger's serial number, plucks out the correct file or files and stacks all related files into one loaded csv. It removes the first two rows of each relevant 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

pH_cleanup(
  data.path,
  pH.serial,
  output.path,
  tf_write = FALSE,
  recursive_tf = FALSE
)

Arguments

data.path

Path to the input files

pH.serial

Logger serial number used in naming the input file

output.path

Path for the output files

tf_write

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

recursive_tf

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

path.pattern

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

Value

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


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