import7500: imports data from li7500 setup

View source: R/import7500.R

import7500R Documentation

imports data from li7500 setup

Description

imports data from the li7500 setup described in Halbritter et al (2024)

Usage

import7500(path, version = "till2023", plotinfo = FALSE)

Arguments

path

location of the files. Note that the function is recursive and will import all the files at the location

version

"till2023" (default) refers to the setup before the li7500 update. For the update version, use "post2023".

plotinfo

character vector of names to use when separating the plot info from the file name. Names in the file name have to be separated with an underscore, ex: ⁠[location]_[date]_[time of day]_[trial].txt⁠. FALSE (default) means no information will be fetched from the filename.

Value

a dataframe with all data present in the files to import. New datetime and fluxid columns contain respectively the datetime of measurements and their original filename. If comments are present, a column will contain the comments. Measurement informations from the file names are stored in new columns according to plotinfo.

References

Halbritter, A.H., Vandvik, V., Cotner, S.H. et al. Plant trait and vegetation data along a 1314 m elevation gradient with fire history in Puna grasslands, Perú. Sci Data 11, 225 (2024). https://doi.org/10.1038/s41597-024-02980-3

Examples

path_pftc7 <- system.file("extdata/pftc7", package = "licoread")
import7500(path_pftc7, version = "post2023")

path_pftc5 <- system.file("extdata/pftc5", package = "licoread")
import7500(path_pftc5,
plotinfo = c("site", "treatment", "date", "plot", "trial"))

path_co2fluxtent <- system.file("extdata/co2fluxtent",
package = "licoread")
import7500(path_co2fluxtent,
plotinfo = c("date", "location", "time_of_day", "trial"))

licoread documentation built on Aug. 18, 2025, 5:17 p.m.