Skip to content

st_sample with raster

1 message · Tyler Frazier

#
Hi All,

Spatstat::rpoint has an argument f that accepts a pixel image object (class .im) to generate points based on the proportionate probability density of that raster.  Just wondering, does sf::st_sample or perhaps another function have a similar available method?

Thanks so much!
Ty

Tyler Frazier, Ph.D.
Lecturer of Interdisciplinary Studies
Data Science Program
College of William and Mary
Webpage: http://tjfrazier.people.wm.edu
Phone: +01 (757) 386-1269