Learn R Programming

zonator (version 0.6.0)

rank_rasters: Get Zonation result rank rasters of a project.

Description

Each Zproject object has a set of variants and their results associated with it. This method will get the selected available rank rasters (1 per variant) and create a RasterStack object.

Usage

rank_rasters(x, variants = NULL)

# S4 method for Zproject rank_rasters(x, variants = NULL)

Arguments

x

Zproject object.

variants

a numeric (IDs) or character (name) vector defining which variants are included in the returned stack (default: NULL means all).

Value

RasterStack object. If no rank rasters are available at all, return NA.

Details

Argument variants can be used to the define which variants are included, the default is to return all. Method will give a warning if a variant doesn't have a rank raster associated with it. If none of the variants have a rank raster, then a NA is returned.

See Also

rank_raster get_variant