Learn R Programming

dots (version 0.0.2)

engine_sf_regular: Generate Regular 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. Final number of points may be approximate for this method.

Usage

engine_sf_regular(shp, col)

Value

tibble with sf geometries

Arguments

shp

input shp with sf geometry.

col

character column name to produce points with

Examples

Run this code
set.seed(1)
data('suffolk')
engine_sf_regular(suffolk[16:20,], 'pop_nhpi')

Run the code above in your browser using DataLab