cellFromPts-deprecated: Converts point location to cell number.

cellFromPts-deprecatedR Documentation

Converts point location to cell number.

Description

This function is essentially a wrapper around the raster::cellFrom*() functions.

Usage

cellFromPts(R, pts)

Arguments

R

a multilayer Raster* object

pts

location info for points must have at least one of the following combinations of columns

  • 'cell' if present this is returned

  • 'row' and 'col'

  • 'lon' and 'lat'

  • 'x' and 'y' assumed to be the same as 'lon' and 'lat'

Value

vector or cell numbers


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.