collection: Creates a spectra collection

Description Usage Arguments Details Value Examples

View source: R/collection.R

Description

A collection is a matrix of spectral data and associated labels.

Usage

1
2
3
4
5
6
7
collection(...)

## Default S3 method:
collection(...)

## S3 method for class 'collection'
tidy(x, ...)

Arguments

...

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

x

A collection object.

Details

The collection is empty on creation, use add_spectrum to populate it. It is recommended to populate a collection using purrr::walk on a list of files (see add_spectrum).

Value

An object of class collection with sub-objects:

data

A tibble that contains the spectral data

normalized

Information about the normalization of the dataset

bucketted

Information about the bucketting of the dataset

labels

Information about the labelling of the dataset

A tibble with a variable number columns depending on the binning of the data:

id

Unique sample identifier

label

Label for the sample

bins

Bin centers

Examples

1
2
3
library(tidySpectR)

tidy(fa_nmr)

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