getAreaEOO: Calculates area of the created EOO polygon.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/EOO_functions.R

Description

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

Usage

1
getAreaEOO(EOO.polygon)

Arguments

EOO.polygon

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

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

1
2
3
4
5
crs.UTM55S <- '+proj=utm +zone=55 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
r1 <- raster(ifelse((volcano<130), NA, 1), crs = crs.UTM55S)
extent(r1) <- extent(0, 6100, 0, 8700)
EOO.polygon <- makeEOO(r1)
EOO.area <- getAreaEOO(EOO.polygon)

redlistr documentation built on July 11, 2019, 5:04 p.m.