engine_sf_random: Generate Random Points with 'sf'

View source: R/engine.R

engine_sf_randomR Documentation

Generate Random Points with sf

Description

Uses sf::st_sample() to produce points and spatial joins with input shp. Each engine function takes the same arguments and produces comparable outputs.

Usage

engine_sf_random(shp, col)

Arguments

shp

input shp with sf geometry.

col

character column name to produce points with

Value

tibble with sf geometries

Examples

set.seed(1)
data('suffolk')
engine_sf_random(suffolk[16:20,], 'pop_nhpi')

dots documentation built on July 15, 2022, 9:05 a.m.