dot-layerIndex: Get index of raster layers

.layerIndexR Documentation

Get index of raster layers

Description

Get index of raster layers

Usage

.layerIndex(layer, x, recycle = TRUE, negate = FALSE)

Arguments

layer

Integer, numeric, logical, or character: Refers to one or more layers.

x

A GRaster.

recycle

Logical: If TRUE (default), and layer is logical and smaller in number than the number of layers, then recycle the vector of layer.

negate

Logical: If TRUE, return indices of all layers not identified in layer.

Value

An integer vector.


adamlilith/fasterRaster documentation built on Oct. 26, 2024, 4:06 p.m.