Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rbind

Stacking Spectra objects together


Description

This method stacks two or more Spectra* objects together.

Usage

## S3 method for class 'Spectra'
rbind(..., create_new_ids = FALSE, new_ids = NULL)

## S3 method for class 'SpectraDataFrame'
rbind(..., create_new_ids = FALSE, new_ids = NULL)

Arguments

...

The Spectra objects to be combined.

create_new_ids

allows creation of new ids if the ids of the Spectra* objects you are trying to stack are redondant

new_ids

vector of new ids to be given to the new object

Value

a Spectra* object.

Examples

# Loading example data
data(australia)
spectra(australia) <- sr_no ~ ... ~ 350:2500

s <- rbind(australia, australia, create_new_ids = TRUE)

l <- separate(australia, calibration = 0.6)
s <- rbind(l$validation, l$calibration)

spectacles

Storing, Manipulating and Analysis Spectroscopy and Associated Data

v0.5-3
GPL-3
Authors
Pierre Roudier [aut, cre], Max Kuhn [ctb], Kristian Hovde Liland [ctb], Bjorn-Helge Mevik [ctb], Hadley Wickham [ctb], Raphael Viscarra Rossel [dtc]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.