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

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