Re: [R-sig-Geo] index a SpatialGridDataFrame

2007-12-20 Thread Paul Hiemstra
Ingo Holz wrote: > Hi, > > I would like to add data to a SpatialGridDataFrame (SGDF) in a loop. > > Something like > > for (i in 1:20){ > > SGDF[,,i] <- sgdf[,,1] > } # sgdf is a SpatialGridDataFrame which is modified in the loop > > I get the error message that it is not poss

[R-sig-Geo] index a SpatialGridDataFrame

2007-12-19 Thread Ingo Holz
Hi, I would like to add data to a SpatialGridDataFrame (SGDF) in a loop. Something like for (i in 1:20){ SGDF[,,i] <- sgdf[,,1] } # sgdf is a SpatialGridDataFrame which is modified in the loop I get the error message that it is not possible to index an object of type S4.