bucket_from_breaks: Bucket a collection form a list of breaks

Description Usage Arguments Details Value Examples

View source: R/bucket_fromBreaks.R

Description

Creates new bins delimited by the input breaks and sums up the intensity values within each bin.

Usage

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

## S3 method for class 'collection'
bucket_from_breaks(x, breaks, skip = FALSE, ...)

Arguments

x

Acollection object

...

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

breaks

A vector of breaking values

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

If omitted, the spectra limits will be added to the breaks.

Bins will be grouped considering their center, inclusion criteria is (lower_limit, higher_limit].

Value

An updated version of collection.

Examples

1
2
3
4
library(tidySpectR)

breaks = c(10, 8, 7.5, 7, 5, 0, -1)
bucket_from_breaks(fa_nmr, breaks)

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