[GRASS-stats] Load data multiple data from grass to R

Jarek Jasiewicz jarekj at amu.edu.pl
Fri Nov 23 09:08:02 EST 2007


This another wuestion which probably has very simple solution:

I try to create single object wich is list of list (from the result of 
density() function

it is very simple:
raster_dens=list(dens_1, dens_2...,dens_78)

except that I must to do it manually

I try to do it with script:

raster_dens=list()

for (i in seq(1:78)) {
append(raster_dens, 
density(na.omit(raster[[i]]),bw=(max(na.omit(raster[[i]]))-min(na.omit(raster[[i]]))/50)))
}
density() returns list of 7, but I cannot ad it to raster_dens

If I do it with SpGridDataFrame, all go OK

So why I cannot do this there?

Jarek


More information about the grass-stats mailing list