I. Ozkan, PhD 
 Professor 
 MIS 
 Cankaya
University
 
iozkan@cankaya.edu.tr
  
Fall 2025
Why learn R programming?
How this course fits into the Data Science part of the program curriculum
Skills you will acquire
What is Data Science?
Why programming matters
Our toolchain: R & RStudio
Course logistics
Extracting knowledge from data
Interdisciplinary—statistics, computing, domain expertise
Drives evidence‑based decisions
Ask a question
Collect/clean data Related Courses:
Analyze/model Related Courses:
Communicate insights Related Courses:
Act & iterate
Automates repetitive tasks
Enables reproducibility
Scales analysis to large datasets
Programming helps you learn
GUI tools (Excel, SPSS) are intuitive but limited
Scripts capture every step of analysis
Easier to share & audit
Same code ⇒ same result
Facilitates collaboration
Required by many journals & companies
Programming languages are languages.
It’s just text – which gives you access to two extremely powerful techniques!!!
Ctrl + C
Ctrl + V
In addition, programming languages are generally
Readable (IMO way easier than trying to figure what someone did in an )
Open (so you can it)
Reusable and reproducible (so you can reuse your code for similar problems and other people can get the same results as you easily)
Diff-able (version control is extremely powerful)
Source: Content in “The Beauty of Programming Languages” is from Hadley Wickham’s You Can’t Do Data Science in a GUI or download from this link
R
Python
SQL
Julia
SAS / Matlab (legacy)
Pros
Powerful and flexible
High level language (Interpreted Language)
Great for data visualization
R is free 😄
Easy to create reproducible analyses using R
R makes collaboration easier (Rmarkdown and RData images)
Getting help is much simpler
Cons
Steep learning curve
No centralized support
Slower for many tasks
Free
Integrated development environment (IDE)
Great code editor with: code highlighting, code completion, debugging
Makes R approachable
Version control & project management tools
Faster insights → competitive edge
Custom analytics pipelines
Fosters data‑driven culture
Example Question
“Does online advertising increase sales?”
Programmatic approach:
Read data
Clean data
pre-process
Build model
Test hypothesis
Communicate results
Weeks 1–4: Fundamentals
Weeks 5–8: Basics of R commands
Weeks 9–14: Control flow, functions, data objects
Visit CRAN website (google “cran”)
Download installer
Run installer
Follow the installation steps
Download free RStudio Desktop (google “RStudio” or “Posit” )
Go to open source
Select RStudio IDE
Download RStudio Desktop
Install
Connects to existing R installation
data.frame(Name=c(“John”,“Julia”), Age=c(33,26))
Tabular structure like an Excel sheet
Columns can be different object types
Basis for tidy data (will see more in MIS 208)
read.csv(),
readxl::read_excel()
Always inspect structure with str()
Check for encoding & locale issues (text and date/time objects)
Programming = heart of data science
R + RStudio: our toolkit
Next week: setting up your environment