Learn R Programming

geoSpectral (version 0.17.5)

spc.getselected.idx: Extract index inside of a Spectra object

Description

Extracts index of rows marked as selected

Usage

spc.getselected.idx(object)

# S4 method for Spectra spc.getselected.idx(object)

Arguments

object

A Spectra object

Value

Spectra object

See Also

spc.setselected.idx<-

Examples

Run this code
# NOT RUN {
x <- spc.example_spectra()
idx=rep(FALSE,nrow(x)); 
idx[1:5]=TRUE
spc.setselected.idx(x)<-idx 
spc.getselected.idx(x)

# }

Run the code above in your browser using DataLab