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
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.