This topic provides an overview of the basic syntax and data structures in R followed by usage examples. The examples show how to load data into R and how to manipulate and subset this data. The examples also illustrate how R handles missing data and the types of program control available in R.

Note that in the following material, indicates an R console prompt, and indicates a (Linux) shell prompt.

 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Access Statement