merge_speclib: Merge speclibs

Description Usage Arguments Value Author(s) See Also Examples

Description

Merge two Speclibs and their SI data

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Dec. 14, 2017, 5:16 p.m.