[STATSGRASS] R-GRASS scripting question
Edzer J. Pebesma
e.pebesma at geog.uu.nl
Fri Jan 23 03:02:14 EST 2004
Thomas Adams wrote:
> Roger (or anyone else),
>
> I am at an impasse attempting to write an R script to call from within
> GRASS. Attached is a code fragment. Basically, I can not get beyond:
>
> summary(bias$mapname)
You want the value of mapname to be evaluated: the content is not in
bias$mapname but bias$something, with something the value of the
variable mapname.
Try:
summary(bias[[eval(mapname)]]
--
Edzer
More information about the grass-stats
mailing list