R Installation
R Installation For Windows:
Step 1:
Go to the site R-project.org
Step 2:
Click Download R
Step 3:
Step 4:
Download R For Windows
Step 5:
step 6:
After Completion of the Download install it.
Step 7:
Example:
Assign a variable to 15.
> a <- 15
display the value of the variable
> a
Check the Data type of the variable
> class(a)
Check if the variable is integer or numeric
> is.integer(a)
> FALSE
Assign the variable Data type into integer
a=as.integer(15)
R Installation For Ubuntu:
Step 1:
open the terminal and enter the following command:
sudo apt-get update
Step 2:
After finishing the update run the following command:
sudo apt-get install r-base
Step 3:
After that Enter R to the command prompt.