Skip to content

Instantly share code, notes, and snippets.

View marcosci's full-sized avatar
💭
in progress ...

Marco Sciaini marcosci

💭
in progress ...
View GitHub Profile
library(sf)
library(data.table)
library(mapview)
n = 1000
x = runif(n, 0, 2)
y = runif(n, 0, 1)
pts = st_as_sf(data.frame(id_pt = 1:n, x = x, y = y), coords = c("x", "y"))