MENU

Fun & Interesting

Aggregate points to a fishnet in R (sf)

Josiah Parry 1,279 lượt xem 2 years ago
Video Not Working? Fix It Now

In this video we create a fishnet grid over a set of points. We then use that grid to aggregate and map our points.

crimemapping R package / lessons: https://github.com/mpjashby/crimemapping/

R code: https://gist.github.com/JosiahParry/d0f244093eb700215d2a19e807022b60

0:00 - intro
0:48 - making an sf object
2:44 - a first grid
4:40 - making the fishnet
8:55 - aggregating to the fishnet
10:55 - mapping
12:00 - making a function

Comment