Skip to content
Prev 19504 / 29559 Next

Error in SpatialPointsDataFrame(..., match.ID=TRUE)?

On Thu, 10 Oct 2013, Jonathan Greenberg wrote:

            
OK. Only use row.names() unless the object is a matrix, rownames() are by 
intention for matrices only.

This is handled in R-forge SVN revision 1470 of September 18. Always state 
your sessionInfo() when reporting a problem, until sp 1.0-13, the code on 
p. 34 of the book worked correctly, and should work correctly if you 
install the development version:

install.packages("sp", repos="http://R-Forge.R-project.org")

For details see:

https://r-forge.r-project.org/scm/viewvc.php/pkg/sp/R/SpatialPointsDataFrame-methods.R?root=rspatial&r1=1461&r2=1470

I've added an erratum on the book website to explain.

Roger