aRTlayer-getMetric {aRT}R Documentation

getMetric

Description

Returns some spatial operation that is not stored in the layer. It rerurns the result of this operation over each element.

Usage

## S4 method for signature 'aRTlayer':
getMetric(object, metric, distance)

Arguments

object Object of class aRTlayer.
metric One metric among:
  • area
  • length
  • centroid
  • hull
  • buffer
distance The distance, used only with buffer.

Author(s)

Pedro Ribeiro de Andrade Neto

See Also

See aRTlayer-class to the description of this class.

Examples

## Not run: 
getMetric(layer, "hull")
getMetric(layer, "buffer", dist=500)
## End(Not run)

[Package aRT version 0.4-0 Index]