acc_changes {OpenLand}R Documentation

Accumulates changes in a LULC raster time series

Description

This function calculates the number of times a pixel has changed during the analysed period. It returns a raster with the number of changes as pixel value and a table containing the areal percentage of every pixel value (number of changes).

Usage

acc_changes(path)

Arguments

path

The path for the Raster* directory or list of Raster* to be analysed.

Value

Two objects, a RasterLayer and a table.

Examples


url <- "https://zenodo.org/record/3685230/files/SaoLourencoBasin.rda?download=1"
temp <- tempfile()
download.file(url, temp, mode = "wb") # downloading the SaoLourencoBasin dataset
load(temp)
# the acc_changes() function, with the SaoLourencoBasin dataset
acc_changes(SaoLourencoBasin)



[Package OpenLand version 1.0.3 Index]