getAreaEOO: Calculates area of the created EOO polygon.

View source: R/EOO_functions.R

getAreaEOOR Documentation

Calculates area of the created EOO polygon.

Description

getAreaEOO calculates the area of the EOO polygon generated from makeEOO the provided data

Usage

getAreaEOO(EOO.polygon, unit = "km")

Arguments

EOO.polygon

An object of class SpatVect, usually the output from makeEOO.

unit

Character. Output unit of area. One of "m", "km", or "ha"

Value

The area of the EOO.polygon in km2

Author(s)

Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com

See Also

Other EOO functions: makeEOO()

Examples

library(terra)
crs.UTM55S <- '+proj=utm +zone=55 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
r1 <- rast(ifelse((volcano<130), NA, 1), crs = crs.UTM55S)
ext(r1) <- c(0, 6100, 0, 8700)
EOO.polygon <- makeEOO(r1)
EOO.area <- getAreaEOO(EOO.polygon)

nick-murray/redlistr documentation built on Oct. 12, 2023, 5:45 p.m.