| hy2mat | R Documentation |
hyperSpec object or a matrixhy2mat
hy2mat(sp)
sp |
Spectroscopic data
(either a |
Either a matrix or an error, if it's impossible to extract a matrix.
Vilmantas Gegzna
Other spHelper functions for spectroscopy and hyperSpec:
IQR_outliers(),
binning(),
file,
gapDer(),
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(),
read3csv2hy(),
replace_spc(),
sd_outliers(),
spStat(),
sp_class_perform()
data(flu, package = "hyperSpec")
flu
a <- hy2mat(flu)
b <- hy2mat(flu$spc)
identical(a,b)
## [1] TRUE
hy2mat(matrix(NA,5,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.