Learn R Programming

geoSpectral (version 0.17.5)

nrow,Spectra-method: The Number of rows of a Spectra object

Description

nrow and ncol return the number of rows or columns present in a Spectra object

Usage

# S4 method for Spectra
nrow(x)

Arguments

x

a Spectra object

Examples

Run this code
# NOT RUN {
x <- spc.example_spectra() 
ncol(x)  #501 
nrow(x)  #26

# }

Run the code above in your browser using DataLab