R statistics

From GRASS-Wiki
Jump to navigation Jump to search

Q: How do I enjoy high quality statistic analysis in GRASS?

A: Well, GRASS has got an interface to the most powerful statistics analysis package around: R-stats (http://www.r-project.org)

First of all you need to add R to your system, the R version must be >= 1.9.1:

Debian GNU/Linux user, if you usually upgrade your system with apt-get, add to file /etc/apt/sources.list the line:

deb http://cran.r-project.org/bin/linux/debian woody main

or point it to a mirror site near you. Then run 'apt-get update' and 'apt-get upgrade', this will upgrade all debian packages (including R, with the newest release). Michele.

RedHat, Suse, Mandrake and similar distros: take the latest R rpm and install it

Once you have R in your system, take a look at http://grass.itc.it/statsgrass/grass_r_install.html. For the impatient just start it:

> R

#and install packages directly from the net
pkgs <- c('akima', 'spgrass6', 'RODBC', 'VR')

install.packages(pkgs, dependencies=TRUE, type='source') 

See also: