merge_speclib: Merge speclibs

mergeR Documentation

Merge speclibs

Description

Merge two Speclibs and their SI data

Usage

## S4 method for signature 'Speclib,Speclib'
merge(x, y, ...)

Arguments

x

1st Object of class Speclib to be merged.

y

2nd Object of class Speclib to be merged.

...

Further (optional) objects of class Speclib.

Value

Object of class Speclib.

Author(s)

Lukas Lehnert

See Also

Speclib

Examples

data(spectral_data)
sp1 <- spectral_data[c(1:10),]
sp2 <- spectral_data[c(11:20),]

## Merge two Speclibs
speclib_merged_1 <- merge(sp1, sp2)
nspectra(speclib_merged_1)

## Merge multiple Speclibs
sp3 <- spectral_data[c(21:30),]
speclib_merged_2 <- merge(sp1, sp2, sp3)
nspectra(speclib_merged_2)

hsdar documentation built on March 18, 2022, 6:35 p.m.