Skip to contents

Area calculation

Usage

# S3 method for class 'list'
range(x, unit = "km", r2 = NULL, r3 = NULL, filename = "")

Arguments

x

A list containing multiple SpatRaster with presence-absence data (0 or 1) for a set of species.

unit

Character. Default is "km", but "m" and "ha" are also available.

r2

A SpatRaster with the same extent as "x".

r3

A SpatRaster with the same extent as "x".

filename

Character. Save results if a name is provided.

Value

A data.frame with area values in the chosen unit.