Learn R Programming

chronosphere (version 0.4.1)

dim,XArray-method: Dimensions of SpatialArray or RasterArray objects

Description

The function returns the dimensions of the array in which RasterLayers or Spatial* objects are organized.

Usage

# S4 method for XArray
dim(x)

Value

A numeric vector.

Arguments

x

A SpatialArray or RasterArray class object.

Examples

Run this code
data(dems)
dim(dems)
data(coasts)
dim(coasts)

Run the code above in your browser using DataLab