You are on page 1of 4

Experiment No.

1
TITLE- Introduction to R and Installation of R

THEORY-

R Programming:
R is a programming language and software environment for statistical analysis,
graphics representation and reporting.

Features of R-

R is a well-developed, simple and effective programming language which includes


conditionals, loops, user defined recursive functions and input and output facilities.

 R has an effective data handling and storage facility,

 R provides a suite of operators for calculations on arrays, lists, vectors and


matrices.

 R provides a large, coherent and integrated collection of tools for data


analysis.

 R provides graphical facilities for data analysis and display either directly at
the computer or printing at the papers.

R is not only entrusted by academic, but many large companies also use R
programming language, including Uber, Google, Airbnb, Facebook and so on.

Data analysis with R is done in a series of steps; programming, transforming,


discovering, modeling and communicate the results

 Program: R is a clear and accessible programming tool


 Transform: R is made up of a collection of libraries designed specifically
for data science
 Discover: Investigate the data, refine your hypothesis and analyze them
 Model: R provides a wide array of tools to capture the right model for your
data
 Communicate: Integrate codes, graphs, and outputs to a report with R
Markdown or build Shiny apps to share with the world

1. Installation of R Studio on Windows

To Install R
1. Open an internet browser and go to www.r-project.org.

2. Click the "download R" link in the middle of the page under
"Getting Started."
3. Select a CRAN location (a mirror site) and click the
corresponding link.
4. Click on the "Download R for (Mac) OS X" link at the top of
the page.
5. Click on the file containing the latest version of R under "Files."
6. Save the .pkg file, double-click it to open, and follow the
installation instructions.
7. Now that R is installed, you need to download and install
RStudio.

To Install RStudio

1. Go to www.rstudio.com and click on the "Download RStudio"

button.
2. Click on "Download RStudio Desktop."
Click on the version recommended for your system, or the latest Mac
version, save the .dmg file on your computer, double-click it to open,
and then drag and drop it to your applications fo.

2. Installation of R on Ubuntu

Installation of R-Cran on Ubuntu :

Through Terminal

 Press Ctrl+Alt+T to open Terminal


 Then execute sudo apt-get update 
 After that, sudo apt-get install r-cran-littler

Installation of R-Base on Ubuntu :


There are two ways to install R in Ubuntu. One is through the terminal, and
the other is through the Ubuntu Software Center.
Through Terminal

 Press Ctrl+Alt+T to open Terminal


 Then execute sudo apt-get update 
 After that, sudo apt-get install r-base

Through Ubuntu Software Center

 Open Ubuntu Software Center 


 Search for r-base
 And click Install
After having installed R, you can run the console using: R- this should open
up the interactive mode.
Conclusion:

You might also like