Skip to content
Prev 7454 / 29559 Next

R spatial matrix to SpatialGridDataFrame

On Tue, 26 Jan 2010, Edzer Pebesma wrote:

            
Specifically, when the data.frame class was changed in R in mid-2006 
(earlier, all data.frames had row.names as long and large character 
vectors), you switched the data= slot from our home-made AttributeList 
class to data.frame:

http://r-spatial.cvs.sourceforge.net/viewvc/r-spatial/sp/R/Class-SpatialGridDataFrame.R?r1=1.4&r2=1.5

change checked in 19 September. I'd forgotten about that, and it does 
point up the need when looking for tips in the mailing list archives to 
see whether the class definition now matches the one that held when the 
advice was given. Going through:

file.show(system.file("ChangeLog", package="sp"))

one can see the change, but it is seriously hard to check whether older 
advice is still relevant. Some is, some isn't, I'm afraid. The message 
that warns about that change is from 28 Sept. 2006:

http://n2.nabble.com/Please-read-before-upgrading-to-R-2-4-0-td2762640.html#a2762640

We do try to post such heads-up messages when appropriate, but archive 
searches on other keys will not locate them.

Does anyone want to add a timeline of class defintion changes to the wiki, 
so that archive tips can be checked?

Roger