R statistics: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
> R | > R | ||
and install packages directly from the net | #and install packages directly from the net | ||
pkgs <- c('akima', 'spgrass6', 'RODBC', 'VR') | |||
install.packages(pkgs, dependencies=TRUE, type='source') | |||
</pre> | </pre> | ||
Revision as of 19:41, 19 December 2006
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:
- Connecting R to RDBMS: http://grass.itc.it/statsgrass/r_and_dbms.html
- Using GRASS and R: http://grass.itc.it/statsgrass/grass_r_interface.html