Stacking Spectra objects together

Share:

Description

This method stacks two or more Spectra* objects together.

Usage

1
2
  rbind.Spectra(..., create_new_ids = FALSE, new_ids = NULL)
  rbind.SpectraDataFrame(..., 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Loading example data
data(australia)
spectra(australia) <- sr_no ~ ... ~ 350:2500

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

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.