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

Jarek Jasiewicz jarekj at amu.edu.pl
Wed Nov 21 15:40:03 EST 2007


I'd like to write R sript to read more rasters from grass to R and 
writeh them to objects with unique

what I try to do:

system("g.mlist type=rast pattern=a_* >tmp_file")
k=c(scan("temp_file, what="string")) //maybe is simpler way

for (i in k) {
here_I_need_obect_with_unique_name=readRAST6(i, paste(i))
}
operations_on_obiects

I expect it could be more complicated than one line, but I complelty 
cannot find solution. It seems very unintuitive

I know that I can use:

obiect <-readRAST6(k)

but how to split it on separate obiects
maybe this is better solution?

Jarek


More information about the grass-stats mailing list