spectra_to_csv: Write spectral data to CSV

Description Usage Arguments Value Examples

View source: R/spectra_to_csv.R

Description

Takes a .dpt list object and calculates the number of particles and columns in the data. Renames the columns, transforms to long format and writes 2 CSV, 1 in long and 1 in wide format.

Usage

1
spectra_to_csv(spectra, out_path, out_file)

Arguments

spectra

list object to transform

out_path

path to directory if outputs

out_file

filename basestring of outputs

Value

2 CSV files

Examples

1
spectra_to_csv(spectra = spectra, out_path = "C:/workspace/", out_file = "test_out")

toebR/OPUSdata documentation built on Feb. 14, 2022, 8:16 a.m.