## S3 method for class 'generic_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'raw_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'cps_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'source_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'response_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'filter_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'reflector_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'object_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'chroma_spct':
[(x, i, j, drop = NULL)
## S3 method for class 'generic_spct':
[(x, i, j) <- value
## S3 method for class 'generic_spct':
$(x, name) <- value
Extract.data.frame
for more details.x
but containing only the
subset of rows and columns that are selected. See details for special
cases.w.length
, a
data frame is returned instead of a spectral object.subset.data.frame
and trim_spct
sun.spct[sun.spct$w.length > 400, ]
subset(sun.spct, w.length > 400)
tmp.spct <- sun.spct
tmp.spct[tmp.spct$s.e.irrad < 1e-5 , "s.e.irrad"] <- 0
e2q(tmp.spct[ , c("w.length", "s.e.irrad")]) # restore data consistency!
Run the code above in your browser using DataLab