Select every n-th spectral variable for all spectra and x-values in spectral tibble (spc_tbl)

select_spc_vars(
  spc_tbl,
  lcol_spc = "spc_pre",
  lcol_xvalues = "xvalues_pre",
  every = NULL
)

Arguments

spc_tbl

Tibble data.frame containing spectra in list-column

lcol_spc

List-column containing spectra, specified with column name as symbols or 1L character vector.

lcol_xvalues

List-column containing x-values, specified with column name as symbols or 1L character vector.

every

Every n-th spectral positions to keep as 1L integer vector.

Value

a spectral tibble