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

Roger Bivand Roger.Bivand at nhh.no
Thu Nov 22 03:34:09 EST 2007


On Thu, 22 Nov 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?

Yes, but it isn't often needed at the user level, and is considered poor 
practice.

Roger

>
>
> Hamish
>
>
>
>      ____________________________________________________________________________________
> Get easy, one-click access to your favorites.
> Make Yahoo! your homepage.
> http://www.yahoo.com/r/hs
> _______________________________________________
> grass-stats mailing list
> grass-stats at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-stats
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no


More information about the grass-stats mailing list