add: Adds 'Spectra*' objects together

Description Usage Arguments Details Value Author(s)

Description

Adds two or more Spectra* objects together.

Usage

1
add(x, y,...)

Arguments

x

an object inheriting from class Spectra

y

an object inheriting from class Spectra

...

more objects inheriting from class Spectra

Details

This function adds two or more Spectra* objects together. It can of add objects of similar class (e.g. two Spectra objects, or three SpectraDataFrame objects). The resulting object will have the same class as the objects it has been created from. The only condition is that the id of the objects to concatenate must NOT overlap.

At present, Spectra and SpectraDataFrame objects can NOT be added together.

Value

An object of the class Spectra or SpectraDataFrame (see Details).

Author(s)

Pierre Roudier pierre.roudier@gmail.com


pierreroudier/specstore documentation built on May 25, 2019, 6:09 a.m.