This is the first in a series of blogs that I am going to post about the basics commands and data visualization in R .From the website R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories by John Chambers and colleagues. So without wasting much time lets jump right in.
Downloading R and RStudio
To install R on Linux press Ctrl-Alt-Tab to open terminal and write the command
sudo apt-get updateand then
sudo apt-get install r-base
Rbut as it so happens that R can be handled in a much more efficient manner using RStudio which provides a much better user interface I would highly suggest for usage due to smooth functionality and easy to handle UX.To install RStudio (The free version Desktop version that is) you can click this link .
Basic Commands in R
Ok so I Assume that you have followed along and downladed R and RStudio.To Shoot RStudio just search for RStudio( or if you are on windows it'll be in your desktop only ).It should look something like this Note the version of R printed in your console will be different than mine is a bit older.Now we will try to implement some basic commands in R to get to know the language more.
catcat is a basic command which can be used to print things to the screen . To run this command type
cat("Hello world!")in your console(which will be in the left by default in RStudio).