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