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

Description Usage Arguments Value Author(s) Examples

View source: R/read-spectrovision.R

Description

read_spectrovision() takes a single SpectroVision .csv file and outputs a data.frame containing the spectra and metadata associated with file

Usage

1
read_spectrovision(file, split_timestamp = FALSE)

Arguments

file

a vector of paths to SpectraWiz file(s)

split_timestamp

If TRUE, the timestamp of each measurement contained in file will be split into three character columns in the resulting data.frame: date, time and sensor.

Value

a data.frame spectral data and any metadata associated with input file file

Author(s)

Alexander Koc

Examples

1
2
3
4
5
6
7
8
# TODO: Update example

path_to_spectrovision_file <- spectrovision_file()

spectral_data <- read_spectrawiz(path_to_spectrovision_file)

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

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