read_licorfile: A function that reads a licorfile.

View source: R/read_licorfile.R

read_licorfileR Documentation

A function that reads a licorfile.

Description

A function that reads a licorfile. It returns a clean dataframe with only the desired parametes.

No dots in the file path accepted, except one for the file type. The functions of this package expect the parameter names of a Li-6800, so change_names = TRUE is recommended. Li-6800 manual page 226 Li-6400 manual page 21 (81 of 1324)

Usage

read_licorfile(
  filepath,
  sheetnumber = 1,
  parameters = c(),
  numeric = TRUE,
  convert = TRUE
)

Arguments

filepath

A string with the filepath to read (if reading from excel).

sheetnumber

An integer which sheet to read from the file.

parameters

A list of desired parameters to extract. Default is everything.

numeric

A boolean that regulates if the dataframe is changed to numeric. Default is TRUE (reccomended).

convert

A boolean that regulates if the names from the Li-6400 files are changed to the Li-6800 format. Default is TRUE.

Value

Returns a dataframe with only the desired parameters.

Author(s)

Sam Loontjens

Examples

parameters_to_extract <- c("A, Ci, elapsed, Qin")
dataframe <- read_licorfile("20210226 PI 50-100 75RH 400CO2 T.xlsx",
                         parameters_to_extract)


SamLoontjens/HandlingLicorFiles documentation built on Nov. 14, 2023, 6:32 a.m.