pH_cleanup | R Documentation |
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.
pH_cleanup( data.path, pH.serial, output.path, tf_write = FALSE, recursive_tf = FALSE )
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 |
For every imported pH data file, one tidied file is exported and returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.