get_absences: Get absences

Description Usage Arguments Value Examples

View source: R/get_absences.R

Description

Take land cover rasters from two timesteps (old and new).

Usage

1
2
get_absences(raster_old, raster_new, category, abs_number, multiplyr = 3,
  exclude_urban = FALSE, sp = FALSE)

Arguments

raster_old

Raster from the previous timestep.

raster_new

Raster from the future timestep.

category

Modeled land cover category. Currently only agriculture is supported. Numeric. One of c(10, 30, 40).

abs_number

Number of absences to create. Default is 10 000.

multiplyr

Multiplier for absences number.

exclude_urban

Should the urban areas be excluded from the absences calculation. If exclude_urban = TRUE, absences will not be created in urban areas (class 190) in addition to modeled category. Default is FALSE.

sp

Logical. If sp = TRUE, spatial object of class sp will be returned. Otherwise a dataframe (default).

Value

Dataframe or sp object (depending on the sp argument).

Examples

1
None.

MirzaCengic/LUpak documentation built on July 18, 2019, 3:06 a.m.