What is R?

R is a language. It is a free software environment for statistical computing and graphics.

It is a GNU project.

UNIX, Windows and MacOS

R version 3.6.1 has been released on 2019-07-05


R History

/ Powerful but cheap graphics - R Core Team - Open Sources /


Milestones of R

almost 20 years, and more than 10,000 R packages


R Download and CRAN

R Homepage - LINK

The Comprehensive R Archive Network (CRAN) - LINK

please choose a location close to you


R Download and CRAN

Turkey - Middle East Technical University Northern Cyprus Campus, Mersin - LINK


R


What is RStudio

An Integrated Development Environment (IDE) for R.

RStudio Desktop and RStudio Server


RStudio Desktop


RStudio Server

R studio anywhere using a web browser https://rstudio.cloud/


Other RStudio Products

https://rstudio.com/

*** ### RStudio Desktop Download

Download LINK


Any Problem About Installation ?


Fields of Usage


Interpretation

The process of making sense out of a collection of data.


Visualization

Data visualization is the graphical representation of information and data.


Visualization

storms


Manipulation

The process of changing data to make it easier to read or be more organized.

R dplyr scheme


Linear and nonlinear Regression (or Modelling)

Linear functions are those whose graph is a straight line.

y = f(x) = a + bx

Regression is a statistical method used to create a model.


Classical statistical tests

Describe the distribution of data and to determine the reliability of a sample drawn from a population.

Statistical significance tests is used to inform judgments regarding whether the hypothesis is false or not false


Time-series analysis

Time series is a series of data points in which each data point is associated with a timestamp.


Classification and Clustering

Classification and Clustering are characterize objects into groups by one or more features.

Classification is used in a supervised learning technique which include predefined properties. Clustering is used in unsupervised learning based on group properties.


Correlation analysis

The measure of the strength and direction of the linear relationship between two variables.


Fields of Usage

  • Facebook – Update status and social network graph.
  • Google – Calculate Return on Investment (ROI), predict the economic activity, improve the efficiency of online advertising.
  • New York Times – Prepare graphics before printing.
  • Twitter – R is part of Twitter’s Data Science toolbox for sophisticated statistical modeling.


Preview of R Course


Getting Started


Open Your RStudio

R You Ready ?!


Using the RStudio


Preferences

RStudio - Preferences - Appearance - Editor Theme


New Theme

Functions, Parentheses, Quotation Marks - Material


Project

File - New Project Don’t Save Current Workspace - New Directory


Project

New Project


Project

Directory Name - Create Project


NEW Project is Ready


File

File - New File - Script


File

File - New File - Script


Undo, Redo, Replace and Find

Edit


Tools - New Terminal

Tools - Terminal - New Terminal


View/Show Screens

View - Zoom and Show …


Script

Save, Run


Environment

Save, Import Dataset, Clean


History

Save, Remove, Clean


Console

Working Directory, Commands, Clean


Files

New Folder, Delete, Rename, Copy


Plot

Before, Zoom, Export, Remove, Clean


Packages

Install, Update


Help

Topic / Word Search


R for Basic Math

addition (+), subtraction (-), multiplication (*), division (/)


R for Basic Math

25 * 4 + 9 / 3 - 56


Assigning Objects

The assignment arrow (<-)


Comments

How to tell R to ignore a part of your code? (#)


Comments

  • Help yourself and other people to reading the code and understand it faster:
# This code will calculate the likelihood that it will rain tomorrow

  complicated_rain_calculation_for_tomorrow()
  • Ignore a line of code and see how a program will run without it:
# value <- old_code()

  value <- new_code()

Save Your Script


SUMMARY


R Files


R Script


R Notebook


R Notebook


R Notebook - HTML


R Notebook - PDF


R Notebook - WORD


R Markdown


###BONUS - R Shiny


BONUS - R Shiny

LINK


BONUS - R HTML

LINK


Your R Notebook