select_spc_vars: Select every n-th spectral variable for all spectra and...

View source: R/select-spc.R

select_spc_varsR Documentation

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

Description

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

Usage

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


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.