Learn R Programming

geoSpectral (version 0.17.5)

rep,Spectra-method: Replicate rows of Spectra object

Description

Operators

Usage

# S4 method for 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.

Value

A Spectra object

Details

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

Examples

Run this code
# NOT RUN {
sp=spc.example_spectra()
dim(sp)
sp2 = rep(sp, 5)
dim(sp2)

# }

Run the code above in your browser using DataLab