The original authors (Ross Ihaka and Robert Gentlemen)
wanted to create an S-like language with the ability to
handle loops and memory better than S or Splus. It started as a
primitive language in 1996, and has grown exponentially since it
it became an international project in 1997.
Locally, it runs on our Sun workstations, just type R in a terminal
window.
The reference manual for R is easily accessed with the
help.start() command. R has some functions not available in
SPLUS, for instance, dataentry() command opens a spreadsheet for
data input. A few functions use different arguments, but most code
works in either flavor of S.
If you have a web connection and R for windows, packages can be downloaded with a few clicks under the packages menu, and you can easily update any or all of the packages you have installed. The windows distribution comes with 8 packages, but there are almost 2000 packages available (well, not all have a windows version).
> emacs &Start R by typing Meta^X R (Meta^X means hold down the diamond key while you press x, then shift-R).
File (Menu) New FrameIn the new window,
File (Menu) Open Fileand type in a file name. It does not need to already exist. If the above commands don't work, you need to copy a specially tailored .emacs file to your root directory. One way to get one that works is to copy mine with the command:
gauss> cp ~jimrc/.emacs .emacs(close and restart emacs if it's already going).
help.start()and choose the introduction or the FAQ. The intro includes a sample session which you should work through.
The command help.search("topic") searches the installed packages, and RSiteSearch("topic") searches the CRAN web site for functions related to some topic.
If you have some functions which you use often, then you might want to clean up the workspace, input the functions, and save the image like this:
> objects() ## lists the data & functions in memory
> rm(temp1, olddata, etc) ## remove old stuff
> source("file_of_functions.R") ## read in the functions
> save.image() ## save the stuff in memory for future sessions
Other Stat package demos for unix packages:
Back to MSU Math Department Home Page