[STATSGRASS] R & GRASS inicialization.
Roger Bivand
Roger.Bivand at nhh.no
Fri Aug 2 09:22:03 EDT 2002
On Fri, 2 Aug 2002, andres javier garcia garcia wrote:
> Hi all;
>
> Now it works (needed to run library(GRASS) first).
>
> All the steps in Roger's mail works right.
> (Just a comment: I know what a factor is, but not how the map that I've used
> as a factor has become a one through the steps followed in Roger's)
myrasts <- rast.get(G, rlist=c("dem", "cover"), catlabels=c(FALSE, TRUE))
^^^^^^^^^^^^^^^^^^^^^^^
The catlabels argument tells rast.get() whether to make the raster an R
factor or numeric vector, using the GRASS category labels.
Roger
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
and: Department of Geography and Regional Development, University of
Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland.
More information about the grass-stats
mailing list