NAcover2zero: Convert 'NA' values in 'speciesLayers' to zeros

NAcover2zeroR Documentation

Convert NA values in speciesLayers to zeros

Description

Pixels that are NA but are inside rasterToMatch may need to be converted to 0, as they can could still potentially be forested

Usage

NAcover2zero(speciesLayers, rasterToMatch)

Arguments

speciesLayers

A RasterStack or RasterLayer that should contain species cover data in the study area

rasterToMatch

A RasterLayer objects to use as the template for all subsequent raster operations (i.e., the one used throughout the simulation).

Value

the speciesLayers with 0 in pixels that had NA


PredictiveEcology/LandR documentation built on June 7, 2024, 4:16 p.m.