Published on Feb 22,2017
461 Views
Email Post

In order to install R, we need to have R Studio. R Studio has a better GUI (Graphical User Interface) and a lot of menu-driven options. Any code typed in R will also work in RStudio.

Steps to install R:

Step 1. R is installed from http://cran.r-project.org/

Step 2. R Studio can be installed from http://www.rstudio.com/ide/download

Step 3. We can install packages by clicking on “packages” tab and “install packages”

Step 4. We can select the location from Cran (mirror).

Step 5. We select the ‘A3’ package.

Step 6. We then load packages by clicking on “packages” tab and “load packages”

Step 7. Then we type the command in the console:

>install.package(“A3”)

It will also install those packages in which A3 has dependencies.

Step 8. Once we go to “load packages”, it will show packages already installed.

Step 9. We can also type the command

>library(“A3”)

*A point to note is that the user must load the package every time

Step 10. In the Help section, it will provide a list of all packages and the functions within a package. The A3 package helps to build predictive models.

Step 11. For example, when we want to use the function ANOVA, the command to be typed is :

>?anova

Step 12. In case the function is not available in the package, we can type the following in the command line:

>??anova

Got a question for us?? Mention them in the comments section and we will get back to you. 

Related Posts:

Business Analytics with R Training

R Tutorial for Data Analytics and Data Science Jobs

Introduction to Business Analytics with R

Importance of Sentiment Analysis 

About Author
edureka
Published on Feb 22,2017

Share on

Browse Categories

Comments
0 Comments