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

Jarek Jasiewicz jarekj at amu.edu.pl
Thu Nov 22 03:38:25 EST 2007


Hamish wrote:
> Jarek Jasiewicz wrote:
>
>   
>>>> 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
>>>>         
>
>
> does R have an "eval" operator?
>
>
> Hamish
>
>
>
>       ____________________________________________________________________________________
> Get easy, one-click access to your favorites. 
> Make Yahoo! your homepage.
> http://www.yahoo.com/r/hs 
>   
yas, but it not work with "paste" as we can expected base on other languages
Jarek


More information about the grass-stats mailing list