Skip to content
Prev 21418 / 29559 Next

Merging shapefiles and csv

On Thu, 31 Jul 2014, Rolando Valdez wrote:

            
No, this only holds under very specific assumptions (same observations in 
both data objects in the same order). Please do refer to the vignette in 
the maptools package, and to previous threads which have advised that 
merge() should not be used, and that the row.names of the data frames be 
used as ID keys. Typically using match() on the row.names of the two 
objects will show which are not correctly aligned.

Hope this clarifies,

Roger