licoread {licoread}R Documentation

reads Li-COR files in a given location

Description

reads Li-COR files in a given location

Usage

licoread(
  location,
  file_type = "auto",
  file_type_list = c("82z", "81x", "auto"),
  data_file = "data.csv",
  meta_file = "metadata.json",
  regex_file = "(\\w*-)*\\w*(?=([.]82z$))",
  sample = FALSE
)

Arguments

location

location of the files

file_type

type of file (82z or 81x). If "auto" (default), the function will try to detect it by itself.

file_type_list

list of file types

data_file

name of the file with raw data

meta_file

name of the file with meta data

regex_file

regex expression matching the name of the 82z file. Here in case the user has a different than the default and for easier updates.

sample

sample = n randomly selects n files to be imported. This allows for testing the setup before importing a potentially large list of files which will take time and be difficult to handle.

Value

a tibble (nested or not depending on raw data) containing all the data from the raw files present at the location provided

Examples

path_82z <- system.file("extdata/82z", package = "licoread")
licoread(path_82z)

[Package licoread version 0.2.0 Index]