read_spectrawiz: Read one or more SpectraWiz output files into a dataframe

Description Usage Arguments Value Author(s) Examples

View source: R/read-spectrawiz.R

Description

read_spectrawiz() takes a single .TRM, .IRR, .ABS, and .SSM file or a vector of file paths as input and outputs a data.frame containing the spectra and the file paths of the input files.

Usage

1

Arguments

file

a filepath to a SpectraWiz file

Value

a data.frame of filenames and spectra associated with the input files in file

Author(s)

Alexander Koc

Examples

1
2
3
4
5
6
7
8
# Get the path to the demo file

path_to_spectrawiz_file <- trm_file()

spectral_data <- read_spectrawiz(path_to_spectrawiz_file)

# Print the five first columns:
print(spectral_data[1,1:5])

alkc/spectrawizreader documentation built on April 23, 2021, 6:38 a.m.