rep-Spectra-method: Replicate rows of 'Spectra' object

Description Usage Arguments Details Value Examples

Description

Operators

Usage

1
2
## S4 method for signature 'Spectra'
rep(x, times, ...)

Arguments

x

A Spectra object whose rows are to be replicated.

times

A integer vector giving the (non-negative) number of times to repeat each row. See help of rep.

...

further arguments to be passed to or from other methods. See help of rep.

Details

Replicates rows of x, making times copies of each row. Replicates Spectra, data, sp, time, endTime, InvalidIdx slots. Resets the SelectedIdx slot.

Value

A Spectra object

Examples

1
2
3
4
sp=spc.example_spectra()
dim(sp)
sp2 = rep(sp, 5)
dim(sp2)

PranaGeo/Spectral documentation built on Feb. 21, 2020, 12:36 p.m.