Learn R Programming

npsp (version 0.7-13)

coords: (spatial) coordinates

Description

Retrieves the (spatial) coordinates of the object.

Usage

coords(x, ...)

# S3 method for grid.par coords(x, ...)

# S3 method for data.grid coords(x, masked = FALSE, ...)

Value

A matrix of coordinates (columns correspond with dimensions and rows with data).

Arguments

x

a (spatial) object used to select a method.

...

further arguments passed to or from other methods.

masked

logical; If TRUE, only the coordinates corresponding to unmasked cells are returned (see mask).

See Also

coordvalues.