coordsFromEpmGrid {epm}R Documentation

Retrieve coordinates from epmGrid

Description

Return the centroid coordinates for a specified set of grid cells.

Usage

coordsFromEpmGrid(x, sites)

Arguments

x

object of class epmGrid

sites

locations of sites, see details.

Details

Sites can be cell indices as a numeric vector, or you can specify sites = 'all' to get all grid cells. If the epmGrid object is hexagon-based, then all grid cells that are occupied are returned. If the epmGrid is square-based, then all grid cells, occupied or empty, are returned.

Value

matrix with x and y coordinates.

Author(s)

Pascal Title

Examples

tamiasEPM

# from cell indices
cells <- c(2703, 90, 3112, 179)
coordsFromEpmGrid(tamiasEPM, cells)

# for all grid cells
dim(coordsFromEpmGrid(tamiasEPM, 'all'))



[Package epm version 1.1.2 Index]