read_ciras4 | R Documentation |
The csv files stored by the CIRAS-4 contain measured and calculated values
that are read by this function and formatted in a large tibble for use with
R. Note that no recalculation of derived variables are performed, although it
is possible to do so using recalculate()
after importing the data.
read_ciras4(filename)
filename |
a csv file containing 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()
example <- system.file("extdata//ciras4.csv", package = "gasanalyzer")
# Read using unified column names:
cir4 <- read_ciras4(example)
# Recalculate data using default gas exchange equations:
cir4_recalc <- recalculate(cir4, create_equations(c("default", "ciras4")))
# View differences:
all.equal(cir4, cir4_recalc[names(cir4)], tol = 0.001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.