,

How to Use R as a Calculator | Lecture 2

R as a Calculator
How to use R as a calculator 

Open R Studio either through GUI or through Command/Terminal Mode by typing 

$] rstudio

In the Console Window, type the following 

> 2+3

> log(10)

>log10(10)

> 3^2+4^3

> exp(5)

> exp(1)

Check the output given in the following Window.
R

To clear the console Window, use the Shortcut key Ctl+L, 

in R, pi is recognised as PI = 3.141

>pi 
[1] 3.141593

We can use -ve sign also in front of the numbers 

> -9 + 1
[1] -8



0 comments:

Post a Comment