22 June 2020

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

Powered by Blogger.

About Me

Featured Post

5G Network Simulation in NS3 using mmWave | NS3 Tutorial 2024

5G Network Simulation in NS3 Using mmWave This post shows the installation of ns3mmwave in Ubuntu 24.04 and simulates 5G networks in ns3. In...

Contact form

Name

Email *

Message *

Total Pageviews

Search This Blog

Pages

Pages

Pages - Menu

Most Popular

Popular Posts