Skip to content

Instantly share code, notes, and snippets.

@mbacou
Last active December 15, 2015 09:29
Show Gist options
  • Save mbacou/5238496 to your computer and use it in GitHub Desktop.
Save mbacou/5238496 to your computer and use it in GitHub Desktop.
R: Compute shape area (with projection)
# Compute polygon area
fs.gha@data$area <- sapply(fs.gha@polygons, slot, "area")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment