Re: [GRASS-user] passing output from GRASS to R.

2009-05-05 Thread Milton Cezar Ribeiro
Thanks for both, Markus and Roger Bivand. Cheers milton 2009/5/5 Roger Bivand > > >From spgrass6 0.6-*, and after installing the R XML package (off CRAN but > installs automatically from Prof. Ripley's extra Windows repository if you > are on Windows), you can use: > > rasterfiles <- execGRASS

Re: [GRASS-user] passing output from GRASS to R.

2009-05-05 Thread Roger Bivand
>From spgrass6 0.6-*, and after installing the R XML package (off CRAN but installs automatically from Prof. Ripley's extra Windows repository if you are on Windows), you can use: rasterfiles <- execGRASS("g.mlist", parameters=list(type="rast", pattern="*ele*"), intern=TRUE) (here from spearfish

Re: [GRASS-user] passing output from GRASS to R.

2009-05-04 Thread Milton Cezar Ribeiro
Hi Markus, Under windows I needed only small changes rasterfiles <- read.table(textConnection(system("g.mlist.exe rast pattern=*output*", intern = TRUE))) Thanks a lot, milton 2009/5/4 Markus Neteler > On Mon, May 4, 2009 at 8:57 PM, Milton Cezar Ribeiro > wrote: > > Dear all, > > > > I am r

Re: [GRASS-user] passing output from GRASS to R.

2009-05-04 Thread Markus Neteler
On Mon, May 4, 2009 at 8:57 PM, Milton Cezar Ribeiro wrote: > Dear all, > > I am running R inside GRASS 6.4 and I can see a list > of all my raster files when I type (from the R session) > > system("g.list rast") > > But I would like to pass the list of rasters to a vector object in R. > > I tryed

[GRASS-user] passing output from GRASS to R.

2009-05-04 Thread Milton Cezar Ribeiro
Dear all, I am running R inside GRASS 6.4 and I can see a list of all my raster files when I type (from the R session) system("g.list rast") But I would like to pass the list of rasters to a vector object in R. I tryed innocently this, but not worked: my.rast.list<-system("g.list rast") I als