Closed ibarraespinosa closed 5 years ago
It seems that new raser version can read sf, therefore it is not necessary this
From R SIG emails:
library(sf) library(raster) points_sf <- st_as_sf(data.frame(xp, yp, area), coords = c("xp", "yp"), crs = 32629) circles_sf <- st_buffer(x = points, dist = sqrt(points_sf$area / pi)) # if it is really the area, or dist = points_sf$area if it is the radius empty_raster <- raster(points_sf, resolution = 1)
It seems that new raser version can read sf, therefore it is not necessary this
From R SIG emails:
library(sf) library(raster) points_sf <- st_as_sf(data.frame(xp, yp, area), coords = c("xp", "yp"), crs = 32629) circles_sf <- st_buffer(x = points, dist = sqrt(points_sf$area / pi)) # if it is really the area, or dist = points_sf$area if it is the radius empty_raster <- raster(points_sf, resolution = 1)