|
DATA MINING
Desktop Survival Guide by Graham Williams |
|
|||
R is essentially a command line tool that is usually initiated by running the command R in a command line window (e.g., a gnome-terminal or DOS shell) on your system. When R is ready to accept your instructions it will issue the > prompt, and then wait for your input. The example in Figure 1.1 shows the user has issued the command nrow with argument iris to find the number of rows in the iris dataset. R has responded with an answer of 150:
The basic MS/Windows command line GUI provides a menu-based system to access some of the meta-functionality of R, such as to load and install packages. By default it uses a multiple document interface (MDI) so that all R windows open up in a single Rgui frame. To use a Single Document Interface (SDI) choose the appropriate option under Single or multiple windows, which you can find under the GUI preferences of the Edit menu. Then save the configuration in the default Rconsole file.
To interrupt a running R command simply type Ctrl-C, and to
exit from R use the q command (or more formally, the
q function):
> q() Save workspace image? [y/n/c]: n |
.RData.
Copyright © 2004-2005
Brought to you by Togaware.