Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created September 6, 2010 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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