Description Usage Arguments Value Examples
Count the number of cells belonging to each category in a Raster* object.
1 | total(x, categories)
|
x |
Raster* object |
categories |
numeric vector containing land use categories. Only cells belonging to these categories will be counted |
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 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.