[R-sig-Geo] st_sample with raster

Tyler Frazier ty|er@j@|r@z|er @end|ng |rom |c|oud@com
Tue Jul 30 00:25:11 CEST 2019


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


More information about the R-sig-Geo mailing list