read_6800_txt | R Documentation |
The text files stored by the 6800 contain measured and calculated values that
are read by this function and formatted in a large tibble for use with R.
Constants and metadata (such as calibration information) are also added as
columns. Note that no recalculation of derived variables is performed,
although it is possible to so using recalculate()
after importing the data.
read_6800_txt(filename)
filename |
an text file containing 6800 gas-exchange data. |
Multiple files can be loaded by calling the function with lapply()
or
purrr::map()
to merge multiple files. In this case, it is important
to ensure that the column names will match.
A tibble with gas-exchange data in columns.
recalculate()
exampledir <- system.file("extdata", package = "gasanalyzer")
# import factory calibration for example data:
import_factory_cals(exampledir)
# read data
li6800 <- read_6800_xlsx(paste0(exampledir, "//lowo2.xlsx"))
li6800_txt <- read_6800_txt(paste0(exampledir, "//lowo2"))
# compare all except equations. Note txt file reports some NAs as zero:
columns_to_check <- names(li6800)[!names(li6800) %in%
c("gasanalyzer.Equations")]
all.equal(li6800[columns_to_check],
li6800_txt[columns_to_check],
tol = 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.