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