Reads data from a LI-7000 CO2/H2O analyzer file, cleans column names,
and ensures proper time column handling. Handles cases where headers
are repeated mid-file.
Usage
read_licor_li7000(filepath)
Arguments
- filepath
Character string specifying the path to the LI-7000 data file.
File should be tab-separated with two header rows.
Value
A tibble containing the processed LI-7000 data with:
All original columns with cleaned names (lowercase, no spaces)
Standardized time column
Data combined across any mid-file header breaks
Details
The function performs the following operations:
Reads the entire file as lines
Identifies and removes any mid-file headers
Cleans column names using janitor::make_clean_names()
Ensures proper time column naming
Examples
if (FALSE) { # \dontrun{
# Read a LI-7000 data file
data <- read_licor_li7000("path/to/li7000_data.txt")
} # }