mean.zonation: Calculate mean proportion remaining

Description Usage Arguments Examples

View source: R/mean.zonation.r

Description

Calculate the mean proportion of features remaining when a given proportion of landscape is protected.

Usage

1
2
## S3 method for class 'zonation'
mean(x, p = 0.1, features = NULL, method = c("arithmetic", "geometric"), ...)

Arguments

x

A zonation object.

p

Numeric. Proportion of landscape protected.

features

Numeric Vector. Feature id numbers (order features are added to rzonation)

method

the method of calculating the mean arithmetic or geometric.

...

further arguments passed to or from other methods.

Examples

1
2
3
4
5
library(raster)
r1 <- raster(matrix(runif(200^2, 0, 1), 200))
r2 <- raster(matrix(runif(200^2, 0, 1), 200))
plan <- zonation(stack(r1, r2))
mean(plan)

wkmor1/rzonation documentation built on Jan. 18, 2020, 4:47 a.m.