aRTlayer-getMetric {aRT} | R Documentation

## getMetric

### Description

Returns some spatial operation that from each spatial object of a layer.

### Usage

    ## S4 method for signature 'aRTlayer':
    getMetric(object, metric= c("area", "length"), ID=NULL)

### Arguments

`object` | Object of class `aRTlayer`.
`metric` | One metric among: area length distance withinDist
`ID` | A subset of the layer's IDs, over which the metrics will be computed. In the case of `NULL`, `getMetric` calculates the metrics over each element of the layer.

### Author(s)

Pedro Ribeiro de Andrade

### 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 1.7-1 Index]