Guest User

Untitled

a guest
Nov 8th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. library(sf)
  2. library(tidyverse)
  3.  
  4. load("wind_test.rda")
  5.  
  6. buffer <- wind.test %>% select(ID) %>%
  7. st_buffer(dist=1000) %>%
  8. st_union() %>%
  9. st_cast("POLYGON") %>%
  10. st_sf() %>%
  11. mutate(turbines = st_intersects(buffer, wind.test) %>% map_int(length))
Add Comment
Please, Sign In to add comment