sf_sample: Better random point sample

Description Usage Arguments Value Creation notes

View source: R/sf_Helpers.R

Description

sf_sample() is a wrapper on st_sample that allows it to return an sf object with a data frame.

Usage

1
sf_sample(num, sampleArea)

Arguments

num

Integer. How many samples to draw?

sampleArea

Polygon depicting study area to draw from.

Value

Returns an sf object with one column (id) that gives a unique identifier to each point created.

Creation notes

First created on 2019-Mar-6 in Lab4inR.R as I was working to create a NetLogo Program in R.


jacpete/jpfxns2 documentation built on May 10, 2020, 9:15 p.m.