| replace_spc | R Documentation |
object$spc and colnames(object$spc)[!!!] Replace object$spc and colnames(object$spc)
replace_spc(object, x, ...)
object |
A |
x |
matrix with the new content for Its size must correspond to rows (for |
... |
further arguments to decomposition |
A hyperSpec object, updated according to x
Vilmantas Gegzna
decomposition
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(),
read3csv2hy(),
sd_outliers(),
spStat(),
sp_class_perform()
ratios <- colRatios(Scores2[[]])
obj1 <- replace_spc(Scores2, ratios)
colnames(obj1$spc) # preserved
obj2 <- decomposition(Scores2, ratios)
colnames(obj2$spc) # NOT preserved
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.