engine_sp_nonaligned: Generate Nonaligned Points with 'sp'

View source: R/engine.R

engine_sp_nonalignedR Documentation

Generate Nonaligned Points with sp

Description

Uses sp::spsample() with method "nonaligned" to produce points, converts back to sf, 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_sp_nonaligned(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_sp_nonaligned(suffolk[16:20, ], 'pop_nhpi')

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