luccpl_count: Count

Description Usage Arguments Value Author(s)

View source: R/luccpl_count.R

Description

Queries performed with the event function return a three-dimensional matrix (x, y, t) the count function performs a vector summation in time or space of these results, allowing for more tangible analyzes. The result can be a two-dimensional matrix (x, y) with the true count for each location or a table with the true count for each year. If applied in the classifications rasterbrick, it returns a table with the number of cells of each class and in each time instant.

Usage

1
luccpl_count(rbrick, for_time_step = FALSE, metadata = NULL, dates = NULL)

Arguments

rbrick

S4. A spatiotemporal raster brick

for_time_step

Boolean. FALSE returns a single raster with sum of timeserie values (use for query result only). TRUE returns a table with histogram for each land use.

metadata

Character. A vector with the land use patterns of the input data

dates

Integer. A vector that represents the timeline

Value

- for_time_step = FALSE, returns a single raster, the value of each cell being the result of the sum of true values over time (only applicable to the query result raster_brick) - for_time_step = TRUE, returns a table with the number of cells of each class and in each instant of time. If applied to the rasterbrick result of the query, it returns a table with the true and false for each instant of time.

Author(s)

Carlos Alexandre Romani


car13romani/LuccPL documentation built on Feb. 2, 2020, 4:36 a.m.