You are on page 1of 10

Introduction to

Dr. Mohammed A. S. Arfin Khan


What is R?
“R is a language and environment for
statistical computing and graphics. R
provides a wide variety of statistical
(linear and nonlinear modelling,
classical statistical tests, time-series
analysis, classification, clustering, …)
and graphical techniques, and is highly
extensible”.
Why to use R?

 a powerful tool for all sorts of statistical problems (and more)


 standard in science
 increasingly popular in ecology, economy & industry
Why to use R?

Advantages Disadvantages
 extremely powerful once you get the  kind of scary
hang of it  steep learning curve
 good for big data sets  not always intuitive
 good for repetitive tasks  slow for certain applications
 recycle old code for new tasks (but more than fast enough for
 no "how on earth did I do this last what most people do with it)
month?"
 lots of things you simply can't do in
Excel
 free, open source
How to install R?
https://cran.r-project.org/
or https://www.rstudio.com/products/rstudio/download/

Download R 4.1.2 for Windows (86 megabytes, 32/64 bit)


Rstudio: Download the RStudio IDE
https://www.rstudio.com/products/rstudio/download/
Getting Help
Overview at r-project.org/help
FAQs at CRAN
Official manual "An Introduction to R"
–as html (for online viewing)
–as PDF (for downloading)
Many more in different languages
Built-in Help
–type help.start() for interactive help in web browser
–type ?functionname for documentation of specific functions/commands
(example: ?print)
- single letters like "R" are difficult for search engines
–a customized Google search for R is available at http://rseek.org/
Basic built-in R GUI on Windows
What does it look like?

Basic R in a Linux terminal

Advanced IDE "RStudio"


Workspace- tells you the variables that you`ve created
Present the windows
Saves the commands that you used and you can reuse them

r source
editor
-type
comands
and scripts

Help
Files
Console Plot
Execute Viewer
script
Resources
An Introduction to R – online pdf
https://learnenglishkids.britishcouncil.org

https://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf
https://cran.r-project.org/manuals.html

What is R?
https://www.r-project.org/about.html

Data Camp- Online Course


https://www.datacamp.com/courses/free-introduction-to-r

You might also like