Given a set of cartesian coordinates, this function determines the surface area of the convex hull (or envelope) of the set.

chullArea(x, y, geo = FALSE)

Arguments

x A vector of x (or longitude) coordinates. A vector of y (or latitude) coordinates. A logical value indicating whether the locations are defined by geographic coordinates (pairs of longitude/latitude values). If TRUE, the surface area is returned as square meters. If FALSE, it is returned as square units of the [x,y] coordinates. Default: FALSE.

Value

A single numeric value corresponding to the surface area of the convex hull (in square meters if geo is TRUE).

Examples

# TODO