Learn R Programming

geoSpectral (version 0.17.5)

spc.colMeans: Computes the mean along the rows of a Spectra object

Description

Computes the mean along the rows of a Spectra object. The method finds the measurement closest in time to the mean time and keeps the spatial/time attributes as well as Ancillary data table (@data) associated to that measurement as that of the mean spectra

Usage

spc.colMeans(object)

# S4 method for Spectra spc.colMeans(object)

Arguments

object

a Spectra object

Examples

Run this code
# NOT RUN {
sp=spc.example_spectra()
spc.colMeans(sp)
# }

Run the code above in your browser using DataLab