R

Description
R ("GNU S") is a language and environment for statistical computing and graphics. It is a free version of an earlier S language, which is still commercially available as S-Plus. It provides a wide variety of statistical and graphical techniques—linear and nonlinear modelling, statistical tests, time-series analysis, classification, clustering, etc.—and offers a very large repository of user-contributed packages.

Availability
Unix:
The R statistical package is installed on Kellogg's Unix server, Skew, as well as SSCC and Quest. It is also available on the WRDS cloud.

Pre-compiled versions of R can be downloaded for free for MS Windows, Linux, and Mac OS from the Comprehensive R Archive Network (CRAN).

Description
R ("GNU S") is a language and environment for statistical computing and graphics. It is a free version of an earlier S language, which is still commercially available as S-Plus. It provides a wide variety of statistical and graphical techniques—linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, etc.—and offers a very large repository of user-contributed packages.

Vendor Information
R is the result of a collaborative project: see www.r-project.org.

Support
The R Project web site includes links to online documentation, FAQs, and R-related mailing lists and sites.

Running R
Unix
: To start command-line R, type R at the prompt. This will show some initial messages and provide the R prompt (">").

To see a list of the demo programs available, type demo() at the R prompt and press enter. To execute the graphics demo (which will show the 2D graphic capabilities of R), for example, type demo(graphics) and press enter. Note that for graphics you need to log into Skew using X-Win32 or any other X emulator.

To exit R, type q() at the R prompt.

Interactive R Environments

  • RStudio is a free and powerful R GUI. It is available on Skew and SSCC with the command "rstudio."
    • On SSCC, RStudio is also available through a browser interface: if you have an SSCC account, you can point your browser to one of these links:
      northwestern.edu:8787http://dornick.it.
      edu:8787http://hardin.it.northwestern.
      edu:8787http://seldon.it.northwestern.
      and sign in with your NetID and password.
  • ESS is an Emacs package to work with statistical code in R, S-Plus, SAS, and Stata. It is available on Skew and SSCC. To use it with Emacs on Skew, include the following line in your ~/.emacs file:
    (load "/etc/kellogg.el").

    Useful Links