Learn R Programming

OpenLand (version 1.0.3)

acc_changes: 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)

Value

Two objects, a RasterLayer and a table.

Arguments

path

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

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab