Previous: Command Syntax Up: Command Syntax Next: Details

Getting Started

  1. To start R under Linux or Unix, type R at the terminal prompt or M-x R under ESS.
  2. The R prompt is >.
  3. Type commands and hit enter to execute. (No additional characters, such as semicolons or commas, are necessary at the end of lines.)
  4. To quit from R, type q() and press enter.
  5. The # character makes R ignore the rest of the line, and is used in this document to comment R code.
  6. We highly recommend that you make a separate working directory or folder for each project.
  7. Each R session has a workspace, or working memory, to store the objects that you create or input. These objects may be:
    1. values, which include numerical, integer, character, and logical values;
    2. data structures made up of variables (vectors), matrices, and data frames; or
    3. functions that perform the desired tasks on user-specified values or data structures.

After starting R, you may at any time use Zelig's built-in help function to access on-line help for any command. To see help for all Zelig commands, type help.zelig(command), which will take you to the help page for all Zelig commands. For help with a specific Zelig or R command substitute the name of the command for the generic command. For example, type help.zelig(logit) to view help for the logit model.



Gary King 2011-11-29