aRTlayer-getSetMetric {aRT} | R Documentation

## Set Metrics

### Description

Return the result of a metric evolving set operations (union, intersection, difference and xor).

### Usage

    ## S4 method for signature 'aRTlayer':
    getSetMetric(object, metric, ids=c("1","2","3"))

### Arguments

`object` | Object of class `aRTlayer`.
`metric` | A set metric among:
`ids` | The ids which to be used in the operation. Metrics `difference` and `xor` use only two ids.

### Author(s)

Pedro Ribeiro de Andrade Neto

### See Also

See `aRTlayer-class` to the description of this class.

### Examples

    ## Not run:
    ## difference between two geometries
    getSetMetric(layer, "difference", ids=c("1", "2"))

    ## union of all geometries of the layer
    getSetMetric(layer, "union", ids=getGeometry(layer)$id)
    ## End(Not run)

[Package aRT version 0.4-0 Index]