coords: (spatial) coordinates

View source: R/coords.R

coordsR Documentation

(spatial) coordinates

Description

Retrieves the (spatial) coordinates of the object.

Usage

coords(x, ...)

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

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

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).

Value

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

See Also

coordvalues.


npsp documentation built on May 29, 2024, 5:31 a.m.