Getting Started with R

The best way to learn anything new is to do it, be hands-on.

Hence the first thing you must do as a developer is to install R on your machine and play with it.

Download R and R-Studio

Download R-studio from following URL:

https://www.rstudio.com/products/rstudio/download/

Choose the Open Source Desktop version for learning purposes.

Download R by following the path specific to your OS from the following URL:

https://cran.rstudio.com/

CRAN stands for Comprehensive R Archive Networks. So, this is the place where you can find a lot of resources on R.

R setup should be started before R Studio and both can run in parallel. Just accept the defaults and complete the installation process.

Hello World!

Hello world is the really the mother of all programming. Almost always you start with this and then expand your learning.

Launch R-studio Rstudio

and you will see something like below. R3

Now to write our first HelloWorld script, let’s create a new RScript file.

R4

And write our first line of code as below.

R1

Clicking on the Run button on the toolbar shows following output in the console and clicking on Source button shows the source details.

R2

That is it! You are all set to learn R-programming.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s