read3csv2hy: [+] Read spectroscopic data from 3 CSV files ("data",...

View source: R/read3csv2hy.R

read3csv2hyR Documentation

[+] Read spectroscopic data from 3 CSV files ("data", "wavelengths" and "spectra") to hyperSpec object

Description

Read spectroscopic data ("data", "wavelengths" and "spectra") stored in 3 CSV files to hyperSpec object. These fileas are usually exported from Matlab.

Usage

read3csv2hy(FileName_base)

Arguments

FileName_base

A base of file name (a string). See section "Details".

Details

If base name is "TD_2009", then CSV file names must be:
[1] "TD_2009 (wavelengths).csv"
[2] "TD_2009 (spectra).csv"
[3] "TD_2009 (data).csv"

Base name can be a path, e.g. "D:/spectra/TD_2009"

Value

Object of class hyperSpec.

MATLAB code

The MATLAB code used to generate csv files: Save_DS_for_R.m

Author(s)

Vilmantas Gegzna

See Also

Other spHelper functions for spectroscopy and hyperSpec: IQR_outliers(), binning(), file, gapDer(), hy2mat(), hyAdd_Label_wl(), hyAdd_Labels_PAP_PD_2014(), hyAdd_Labels_TD2009(), hyAdd(), hyDrop_NA(), hyGet_palette(), hyRm_palette(), mad_outliers(), mean_Nsd(), median_Nmad(), plot_hyPalette(), prepare_PAP_RK_2014__MATLAB_failui(), read.OOIBase32(), read.OceanView.header(), read.OceanView(), read.sp.csv2(), replace_spc(), sd_outliers(), spStat(), sp_class_perform()


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.