R Programming Part 1 - Introduction

This post is for short introduction of R programming language, steps to install R and Resources to study R.
  
Introduction of R :
R is a programming language developed by Ross Ihaka and Robert Gentleman in 1991. First announcement of R to the public in  1993. R version 3.0.2 is release on December 2013. R is open source and  platform independent.


R provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible.

R is basically divided into 2 conceptual parts:
1. “base” R system that you download from CRAN

     (Nearly 4000 packages available)
2. Everything else

Many packages available for R
“base” package : contains most fundamental functions.
Other package :  utils, stat, database, graphics, grid, methods, tools,parallel,compiler
“Recommend” package : boot, class, cluster,
lattice, codetools, Matrix, spatial  and many more.

Install R in Ubuntu :
Through terminal :
1. sudo apt-get update
2. sudo apt-get install r-base

root@kb:/home/kb# R

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> 

Through Ubuntu Software Center:
1. Open Ubuntu software center
2. search for r-base
3. install
4. Run R by executing R in terminal

Install RStudio :
1. click here and download right package for your system
2. Open this file in Ubuntu Software center
3. Click and install
4. Search Rstudio icon Click on it and start using RStudio

Install swirl package :
open R through terminal
> install.package(“swirl”)
select nearest mirror 


Limitations of R:
  • There was originally little built in support for dynamic or 3-D graphics
  • Objects are stored in physical memory.

R Resources
Books  available from CRAN21 are:

  • An Introduction to R22
  • R Data Import/Export23
  • Writing R Extensions24: Discusses how to write and organize R packages
  • R Installation and Administration25: This is mostly for building R from the source code)
  • R Internals26: This manual describes the low level structure of R and is primarily for developers and R core members

1 comments:

Post a Comment