Compute the standard normal variate for collections of spectra

snv_apply(X, dt_prep_sets = NULL, append_rows = FALSE)

Arguments

X

matrix, data.frame or data.table with spectra used as input to compute standard normal variate (SNV)

dt_prep_sets

A standardized data.table, i.e. returned from specprepper::*_apply() function. Contains labelled sets of preprocessed spectra: This argument allows to chain preprocessing in sequential manner, and i.e. apply variable Savitzky-Golay smoothers with a single function application.

append_rows

logical whether to append the newly processed rows, when dt_prep_sets is not NULL.