Skip to contents

Identify the number of habitat patches. A wrapper around length(), but named to establish its context. Intended for usage from objects created by habitat_connectivity(). See examples below.

Usage

n_patches(area)

Arguments

area

Numeric vector. Area of a connected patch.

Value

Integer. Number of patches.

Examples

n_patches(lizard_areas_connected$area)
#> [1] 73