import_SLSspec: Import Uncle Tagg spectra into R

Description Usage Arguments Value

View source: R/SLS.R

Description

import_SLSspec

Usage

1
2
3
4
5
6
7
import_SLSspec(
  directory_path,
  pattern = "SLS Spec",
  lambda = 266,
  header = TRUE,
  combine = TRUE
)

Arguments

directory_path

a path to a directory containing the exported .xlsx files

pattern

a regex pattern for further selecing files in the directory; defaults to SLS Spec

lambda

a number value representing wavelength for Tagg spectra, typically 266nm for small aggregates and 473nm for large aggregates; default is 266nm

header

if TRUE skips first 1 rows of .xlsx file to remove Uncle header; default is TRUE

combine

if TRUE, returns all imported data merged into one unified dataframe with an "origin" column listing the original file path, FALSE will return a list of dataframes; default is TRUE

Value

a named (with filename) list of dataframes or a single merged dataframe


eric-hunt/uncleR documentation built on Dec. 20, 2021, 5:28 a.m.