Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created September 6, 2010 15:09
Show Gist options
  • Save ramnathv/567140 to your computer and use it in GitHub Desktop.
Save ramnathv/567140 to your computer and use it in GitHub Desktop.
Merge a Spatial Polygon with a Data Frame
sp@data = data.frame(sp@data, df[match(sp@data[,by], df[,by]),])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment