Learn R Programming

geoSpectral (version 0.17.5)

ncol,Spectra-method: The Number of Columns of a Spectra object

Description

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

Usage

# S4 method for Spectra
ncol(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