dimensions: retrieve spatial dimensions from spatial data

Description Usage Arguments Value Methods Examples

Description

retrieves spatial dimensions box from spatial data

Usage

1
	dimensions(obj)

Arguments

obj

object deriving from class "Spatial"

Value

two-column matrix; the first column has the minimum, the second the maximum values; rows represent the spatial dimensions

Methods

obj = "Spatial"

object deriviving from class "Spatial"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# just 9 points on a grid:
x <- c(1,1,1,2,2,2,3,3,3)
y <- c(1,2,3,1,2,3,1,2,3)
xy <- cbind(x,y)
S <- SpatialPoints(xy)
dimensions(S)

# data.frame
data(meuse.grid)
coordinates(meuse.grid) <- ~x+y
gridded(meuse.grid) <- TRUE
dimensions(meuse.grid)

dis-organization/sp_dplyrexpt documentation built on May 15, 2019, 8:52 a.m.