clipHullsToLand: Clips convex hulls to landmasses

Description Usage Arguments Details Value Examples

View source: R/clipHullsToLand.R

Description

clipHullsToLand returns the clipped convex hulls by species for a single object of class sf (a data frame).

Usage

1

Arguments

x

object of class sf, sfc or sfg

Details

These hulls are clipped to landmasses only. To generate hulls and clip them to landmasses with a single function see makeLandClippedHulls. x must have both a geometry and a binomial column present to work.

For more felxible convex hull generation see st_convex_hull

Landmasses used to clip to are generated from the rnaturalearth package using the ne_countries function. please see its documentation here ne_countries for a full breakdown.

Value

Returns object x with clipped convex hulls computed and stored in the convex_hull column.

Examples

1

JCur96/sfe documentation built on Sept. 2, 2020, 6:02 p.m.