bucket_uniform: Performs uniform bucketting

Description Usage Arguments Details Value Examples

View source: R/bucket_uniform.R

Description

Bucket a collection of spectra to a given bin width or number of bins

Usage

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

## S3 method for class 'collection'
bucket_uniform(x, width = NULL, N = NULL, skip = FALSE, ...)

Arguments

x

Acollection object

...

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

width

Bin width

N

Number of bins to create

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

Provide either width or N

Value

An updated version of collection.

Examples

1
2
3
4
5
library(tidySpectR)

bucket_uniform(fa_nmr, width= 0.1)

bucket_uniform(fa_nmr, N = 100)

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