R is a vehicle for newly developing methods of interactive data analysis and it has been extended by a large collection of packages
R is a “language and environment for statistical computing and graphics”. R is an integrated suite of facilities for data manipulation, calculation and graphical display.
Among other things it has:
An effective data handling and storage facility
A suite of operators for calculations on arrays
A large, coherent, integrated collection of intermediate tools for data analysis
Graphical facilities for data analysis and display either directly at the computer or on hard-copy
R is very much a vehicle for newly developing methods of interactive data analysis. It has developed rapidly, and has been extended by a large collection of packages.*
Step 1. In your bash window, create a new working sub-directory (we recommend you use separate working directories for analyses conducted with R, here under Desktop), and move to it
$cd Desktop
$mkdir exerciseR
$cd exerciseR
Step 2. Start the R program by simply typing R
$ R
This command will open the R environment for you, and a new prompt will appear: “>”
Step 3. To work under R, write any command following the “>” prompt as in Unix
>
Example of basic operations in R:
>x=3>y=2>x+y[1]5
Step 4. R being created for statistical purposes, it has very helpful built-in functions