contingencyTable: Contingency table

Description Usage Arguments Value Examples

View source: R/contingencyTable.R

Description

Extracts LUC transitions for all input grids of the time series.

Usage

1
contingencyTable(input_raster, pixelresolution = 30)

Arguments

input_raster

path (character), Raster* object or list of Raster* objects. See
raster for more information about supported file types.

pixelresolution

numeric. The pixel spatial resolution in meter.

Value

A list that contains 5 objects.

Examples

1
2
3
4
5
6
url <- "https://zenodo.org/record/3685230/files/SaoLourencoBasin.rda?download=1"
temp <- tempfile()
download.file(url, temp, mode = "wb") #downloading the online dataset
load(temp)
# the contingencyTable() function, with the SaoLourencoBasin dataset
contingencyTable(input_raster = SaoLourencoBasin, pixelresolution = 30)

OpenLand documentation built on Nov. 2, 2021, 9:13 a.m.