ABSTRACT

You can use R as a powerful calculator for a wide range of numerical computations. Using R in this way can be useful in its own right, but can also help you to create and test code fragments that you wish to build into your R programs, and help you to learn about new R functions as you meet them.

This chapter shows you how to use R to do arithmetic calculations; create and manipulate variables, vectors, and matrices; work with logical expressions; call and get help on inbuilt R functions; and to understand the workspace that contains all the associated objects R creates along the way.