Getting started with R and RStudio

    R programming language is used in data manipulation, calculation, and data visualization. It is widely used by the statistician, data scientist, and academics. R is free and easy to learn scripting language. 
    The packages are the main power sources of the R platform. You can find the latest algorithms, function, and models by downloading the packages. A single command or a function might be enough to build a complex model in R by using built in packages. If you are in the area of data science, I highly recommend to learn this language and apply it for your projects.


Installing R and RStudio


   R and RStudio are available for users of Linux, Windows, and Mac. To download R go to https://cran.r-project.org/ and install it according to instructions on that page. You may refer manuals to learn more about R.

    RStudio is an IDE to write, debug and run R scripts. I highly recommend to use it.
Go to https://www.rstudio.com/ and download RStudio

    After installation of RStudio, you can run the 'version' command to check the installed R version.

 
> version
                                         
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          4.2                         
year           2017                        
month          09                          
day            28                          
svn rev        73368                       
language       R                           
version.string R version 3.4.2 (2017-09-28)
nickname       Short Summer     

To install the package you can run the command below. He we install 'caret' package.

 
> install.packages("carer")

To show a help page about the 'caret' package run the command below.

 
> ??caret

The installed packages can be seen by the command of

 
> installed.packages()


R Resources

   There are many references and tutorials about the R. Find the appropriate resources for your level and start practicing it. You can also find a lot of useful information regarding the data analysis with R on this blog.


No comments:

Post a Comment