This function allows you to calculate the number of patches in a categorical landscape in vector data format

vm_l_np(landscape)

Arguments

landscape

the input landscape image,

Value

the function returns tibble with the calculated values in column "value", this function returns also some important information such as level, class, patch id and metric name.

Examples

vm_l_np(vector_landscape)
#> # A tibble: 1 × 5
#>   level     class id    metric value
#>   <chr>     <chr> <chr> <chr>  <dbl>
#> 1 landscape NA    NA    np         3