Learn R Programming

sdmApp (version 0.0.2)

sdmApp_TimesRasters: Multiply the probability of occurrence map with the presence/absence map to get a presence map only.

Description

Multiply the probability of occurrence map with the presence/absence map to get a presence map only.

Usage

sdmApp_TimesRasters(x, y)

Arguments

x

Probability of occurrence map, a Raster object

y

Presence/Absence map, a Raster object

Value

Probability of occurrence map with only presence

Examples

Run this code
# NOT RUN {
r <- raster::raster(system.file("extdata","AETI.tif",package = "sdmApp"))
r2 <- r > raster::cellStats(r, stat='mean', na.rm=TRUE)
r <- r/raster::maxValue(r)
names(r) <- "propability of occurence"
z<-sdmApp_TimesRasters(r,r2)
sdmApp_RasterPlot(z)
# }

Run the code above in your browser using DataLab