Saturday, September 29, 2012

Part1: Introduction and Installation of R Programming Language

  R is really interesting  open source programming language and software environment for statistical computing and graphics. It compiles and run on wide verity  of UNIX platforms, Windows and Mac OS. It provides, among other things, a programming language, high level graphics, interfaces to other languages and debugging facilities.

 The source code for the R software environment is written primarily in C, Fortan, and R. R is freely available under the GNU General Public License. R uses a command line interface; however, Rstudio like graphical interface are available for use with R.




People use R to analyze data in the fields of:

History and Overview of R


The R language is a dialect of S which was designed in the 1980s and has been in wide- spread use in the statistical community since. S was created by John Chambers while at Bell Labs. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and now, R is developed by the R Development Core Team

What is S?

S is a language that was developed by John Chambers and others at Bell Labs. S was initiated in 1976 as an internal statistical analysis environment originally implemented as Fortran libraries. In 1988 the system was rewritten in C and began to resemble the system that we have today . The book Statistical Models in S by Chambers and Hastie documents the statistical analysis functionality. Version 4 of the S language was released in 1998 and is the version we use today. The book Programming with Data by John Chambers documents this version of the language. In 2006, Alcatel purchased Lucent Technologies and is now called Alcatel-Lucent. Insightful sells its implementation of the S language under the product name S-PLUS and has built a number of features on top of it - hence the “PLUS”.

About R:
In 1991, R Language  Created in New Zealand by Ross Ihaka and Robert Gentleman. Their experience developing R is documented in a 1996 JCGS paper. In 1993, First announcement of R to the public.In 1995, Martin M chler convinces Ross and Robert to use the GNU General Public  License to make R free software. In 1996, A public mailing list is created (R-help and R-devel). In 1997, The R Core Group is formed . The core group controls the source code for R. In2000, R version 1.0.0 is released. In2012, R version 2.15.1 is released on June 22, 2012.


Features Of R:
R provides a wide variety of statistical and graphical techniques, including linear and nonlinear modeling, classical statistical tests, time series analysis, classification, clustering, and others.Syntax is similar to S and runs on any standard computing platform/OS. R is easily extensible through functions and extensions, and the R community is noted for its active contributions in terms of packages. Many of R's standard functions are written in R itself, which makes it easy for users to follow the algorithmic choices made. For computationally intensive tasks, C ,C++, and Fortan code can be linked and called at run time. Advanced users can write C or Java code to manipulate R objects directly.
Another strength of R is static graphics, which can produce publication-quality graphs, including mathematical symbols. Dynamic and interactive graphics are available through additional packages.

R Resources:
Available from CRAN (http://cran.r-project.org)
List of books is at http://www.r-project.org/doc/bib/R-books.html


How to Install R on Linux(Ubuntu 12.04 LTS)?

Simple Installation method: 
just type "sudo apt-get install r-base" in your terminal. It is simple but the version of R is 2.14.1. latest version of R is 2.15.1.(2012-06-22) 
Alternate method:
Firstly get the repository SSL key: To add the key to your system type the command below in your terminal:

recursive-lab@jasmedia-G41D3:~$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9

And feed it in to your apt using the command below.
After that edit your source list..
And add the repository to the bottom of sources.list(without quotes )

"deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/"

please replace "<my.favorite.cran.mirror>" with your nearest server url.
for Example:" deb http://ftp.iitm.ac.in/cran/bin/linux/ubuntu precise/"
See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors.

Then update your apt:
And install:
Now you can get an R prompt with.
Graphical User Interface for R is Rstudio. please download the
Debian package here: http://download1.rstudio.org/rstudio-0.96.331-i386.deb and install it through Ubuntu Software Centre.
Reference: http://cran.r-project.org/bin/linux/ubuntu/README

No comments:

Post a Comment