Learn R Programming

ecochange (version 2.9.3.3)

tabuleRaster: Fast tabulation of pixel values

Description

This function generates frequency tables for scenes in ecosystem remote sensing products by wrapping rasterDT. The function is mapped by gaugeIndicator to optimize computation of ecoystem extents.

Usage

tabuleRaster(layer = "", 
    del0 = TRUE, useNA = "no", 
    n256 = FALSE)

Value

data.frame.

Arguments

layer

character. File path to an ERSP scene.

del0

logical. Remove the 0-count categories.

useNA

logical. Include NA values. This argument is passed to freqDT.

n256

logical. Do the raster contains less than 256 unique values?

Author

Wilson Lara Henao [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Victor Gutierrez-Velez [aut] (<https://orcid.org/0000-0003-1338-2020>), Ivan Gonzalez [ctb] (<https://orcid.org/0000-0002-0313-398X>), Maria C. Londono [ctb] (<https://orcid.org/0000-0002-2317-5503>)

Examples

Run this code
# \donttest{
tabuleRaster(raster(volcano), n256 = FALSE)
# }

Run the code above in your browser using DataLab