View source: R/get_oxygen_from_preamble.R
get_oxygen_from_preamble | R Documentation |
Extracts oxygen information from a Licor file's preamble and adds it to the main data as a new column so it is easier to access.
get_oxygen_from_preamble(licor_exdf)
licor_exdf |
An |
Licor LI-6800 log files include the oxygen concentration as an entry in the
preamble, but it is more helpful to include this information as a column in
the main data. The get_oxygen_from_preamble
function attempts to move
the oxygen concentration (as a percentage) from the preamble into a column.
An exdf
object based on licor_exdf
that includes the oxygen
percentage as a new column called oxygen
.
# Example: Read data from a Licor log file and get the oxygen information from
# the preamble
# Read the file
licor_data <- read_gasex_file(
PhotoGEA_example_file_path('licor_for_gm_site11.xlsx'),
)
# Here we can see the oxygen percentage in the preamble
str(licor_data$preamble)
# Include the oxygen info as a column in the file
licor_data <- get_oxygen_from_preamble(licor_data)
licor_data[, c('replicate', 'oxygen'), TRUE]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.