random_points: Generate a sf object of random points within and around a set...

Description Usage Arguments Value

View source: R/mpa.R

Description

Polygons are expanded by buffer, and then samples are drawn from those. See st_buffer

Usage

1
random_points(x = read_mpa("Cuba"), buffer = 0.1, n = 1000)

Arguments

x

sf object of polygons

buffer

numeric See st_buffer

n

integer, the number of points

Value

a sf object of n points


BigelowLab/mpatools documentation built on Jan. 20, 2022, 3:46 p.m.