layerOp | R Documentation |
Perform an operation on some layers with a Field to make a new layer within the Field (or change their values, or remove them). For example, adding some layers, dividing one layer by another or setting some layers to a constant value. NOTE: this function performs 'in-place' operations which, unlike normal R functions, will actually change the objects passed in as the arguments, not just return a value! Read what this means below.
layerOp(x, operator, layers, new.layer, constant = 1)
x |
The x object on which we are operating. |
operator |
The operator we are applying, can be:
|
layers |
The names of the layers upon which to operate (as a vector of characters). Furthermore, one can utilise a handy trick whereby any layer specified, |
new.layer |
A single character specifying the name of the new layer, will over-write an existing layer if already present. Will be built automatically if not specified. |
constant |
A numeric used for the "mulc"/"divc"/"addc"/"subc" modes |
A Field (but not this is not strictly necessary since the objects are changed in place)
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.