contingencyTable {OpenLand}R Documentation

Contingency table

Description

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

Usage

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


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)




[Package OpenLand version 1.0.3 Index]