Al.I.
Cuza University of Iași
Faculty of Economics and Business Administration
Department of Accounting, Information Systems and Statistics
Data
Processing/Analysis/Science
with R
(A Brief ) Introduction to R
By Marin Fotache
What is R ?
An open-source and free language and platform for:
◦ data gathering (from a wide variety of sources)
◦ data processing
◦ data exploration (data visualisation and data analysis)
◦ data mining / machine learning / deep learning
At its inception, R was targeted specifically for
statistical computing (it derives from S programming
language)
Now it incorporates options for tasks varying from
data processing to software development; still, it is not
considered a full-fledged programming language (like
Python, for example)
Why R ? (Kabacoff, 2011)
R is free! (SPSS, SAS, etc. cost thousands or tens of thousands of
dollars)
R is a comprehensive statistical platform, offering all manner of
data analytic techniques
R has state-of-the-art graphics capabilities
R is a powerful platform for interactive data analysis and
exploration
R can easily import data from a wide variety of sources, including
text files, database management systems, statistical packages, and
specialized data repositories. It can write data out to these systems
as well
R provides an unparalleled platform for programming new
statistical methods in an easy and straightforward manner. It’s easily
extensible and provides a natural language for quickly
programming recently published methods
Why R ? (cont.)
R contains advanced statistical routines not yet
available in other packages. In fact, new methods
become available for download on a weekly basis
R has an (over) enthusiastic community of users
and developers
A variety of graphic user interfaces (GUIs) are
available, offering the power of R through menus
and dialogs.
R runs on a wide array of platforms, including
Windows, Unix, and Mac OS X
R main limitations (Fotache & Strimbei,
2013)
User interface:
◦ R was initially based on the command prompt and scripts
◦ SPSS and Excel users find the transition to R interface (GUI) difficult
◦ IDEs like RStudio have hugely improved the productivicy and R acceptance
A tidal wave of packages
◦ Deciding which function/package to use is not always an easy task
◦ Some of the packages are poorly maintained (unavailable in recent R versions)
◦ New packages require constant scanning of R literature/blogosphere
Data sourcing (not particular to R)
◦ In many cases ETL mechanisms are needed for gathering data from web logs,
sensors, mobile applications, Excel files, etc.
◦ Various packages have been developed in this respect
◦ Recent APIs, web services are beneficial
Functional programming (not only in R) requires some time to master
References/resources on R
R Studion Education (Beginners)
[Link]
R resources (free courses, books, tutorials, & cheat
sheets – updated regularly)
[Link]
heatsheets-tutorials-books/
New to R? Kickstart your learning and career with
these 6 steps!
[Link]
R Tutorials and Courses
References/resources on R (cont.)
CRAN - the main R site: [Link]
Books/e-Books which can be bought from:
◦ Amazon (unfortunately, sometimes statistical formula are poorly
displayed on Kindle format)
◦ Publishers (Manning, Packt, …): PDF format widely provided -
excellent to read/display/code copy
Freee-Books (see next slides) and PDF tutorials available
on web
Presentations posted on Slideshare, universities or courses
pages
Video-tutorials (mostly on YouTube) (2016)
[Link]
References/resources on R (cont.)
Journals:
◦ Journal of Statistical Software: [Link]
◦ The R Journal: [Link]
◦ Journal of Statistics Education (not targeted only to R, but
generally to Statistics): [Link]
Stack Overflow R section - A question-and-answer site:
[Link]
R news and tutorials contributed by (552) R bloggers:
[Link]
Other R communities, blogs, academic courses, etc.
Video-tutorials on R/RStudio installation
InstallingR and RStudio on Windows 10 (2020-3:20)
[Link]
How to install Rstudio on Windows 10 (2019-2min)
[Link]
How to install R and install R Studio. How to use R studio | R
programming for beginners (2019 – 7:36)
[Link]
How to Download and Install R and R Studio (Best Version -
2020)
[Link]
Video-tutorials on R/RStudio basics
RStudio Overview - 1:30
[Link]
=n3uue28FD0w
RStudio Introduction
[Link]
Getting staRted with R: An accelerated primer
[Link]
slides: [Link]
/getting-started-with-r-an-accelerated-primer/
Statistics with R: Using R and RStudio, Lesson 2 by
Courtney Brown
[Link]
Video-tutorials on R/RStudio basics (cont.)
Chester Ismay and Albert Y. Kim - An Introduction to Statistical and
Data Sciences via R (2018) – Section 2 Getting Started with Data in
R
[Link]
Setting Your Working Directory and Editing R Code (Mac)
[Link]
PLjTlxb-wKvXNSDfcKPFH2gzHGyjpeCZmJ
Setting Your Working Directory and Editing R Code (Windows)
[Link]
KvXNSDfcKPFH2gzHGyjpeCZmJ&index=3
How to Get Help
[Link]
LjTlxb-wKvXNSDfcKPFH2gzHGyjpeCZmJ
Web sites with R tutorials/documentation
R Studion Education (Beginners)
[Link]
rOpenSci Educators Collaborative: What Educational Resources Work Well and Why?
[Link]
W. N. Venables, D. M. Smith and the R Core Team - An Introduction to R. Notes on R:
A Programming Environment for Data Analysis and Graphics, http://
[Link]/doc/manuals/r-release/[Link]
Introducing R
[Link]
R Introduction
[Link]
Quick R
[Link]
Professor Courtney Brown's YouTube Video Classes
[Link]
Web sites with R tutorials/documentation
(cont.)
Advanced R by Hadley Wickham
[Link]
how to do stuff in r. two minutes or less
[Link]
Introducing R
[Link]
R script associated with this presentation
[Link]
/Data-Processing-Analysis-Science-with-R/blob/master/01%2
0R_Introduction_Data%20Structures/01a_R_Introduction.R