extract: Extracts a spectral region

Description Usage Arguments Details Value Examples

View source: R/mask_extract.R

Description

extract extracts a spectral region

Usage

1
2
3
4
extract(x, ...)

## S3 method for class 'collection'
extract(x, from, to, overlaps = "keep", skip = FALSE, ...)

Arguments

x

Acollection object

...

further arguments passed to or from other methods(not currenctly used).

from, to

Coordinates of the region to extract. Use -Inf or Inf to extract up to an end of the spectra.

overlaps

What to do with the bins ovelapping the edge of the mask. Use either keep of remove.

skip

Skip the creation of of processor step. If TRUE, this step will not be added to the list of processing steps. Typically reserved for nested function calls.

Details

The upper limit in not included: [min, max).

Value

An updated version of collection.

Examples

1
2
3
4
library(tidySpectR)

# Removing edges
extract(fa_nmr, from = 7.2, to = -0.5)

CVUA-RRW/tidySpectR documentation built on April 13, 2021, 11:41 a.m.