Description Usage Arguments Details Value Examples
Count the area or number of cells belonging to each category in a Raster* object.
1 2 3 4 5 6 7 8 9 10 |
x |
Raster* object |
... |
additional arguments (none) |
categories |
numeric vector containing land use categories. Only cells belonging to these categories will be counted |
If x is a DiscreteLulcRasterStack object this function returns the number of cells belonging to each category. If x is a ContinuousLulcRasterStack object the function returns the sum of the fractions of the various land use categories.
A list containing the following components:
total
a matrix containing the total number of cells belonging to each category. Rows represent layers in the input Raster* object
categories
the categories included in the calculation
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.