Getting Started With R Detailed Notes
Getting Started With R Detailed Notes
1. Introduction to R
R is an open-source programming language developed by Ross Ihaka and Robert Gentleman in the 1990s. It is
specifically designed for statistical computing and data analysis. R supports a wide range of statistical techniques,
visualizations, and data manipulation methods. It is widely used in business analytics for predictive modeling, data
visualization, and decision-making strategies.
2. Advantages of R
R is:
- Open Source: Free and widely accessible.
- Equipped with Advanced Statistical Tools: Supports regression, clustering, forecasting.
- Excellent at Data Handling: Manages large and complex datasets efficiently.
- Cross-Platform: Available on Windows, Mac, and Linux.
- Backed by a Strong Community: Thousands of packages and active user forums.
To use R:
1. Download R from CRAN (Comprehensive R Archive Network).
2. Download and install RStudio from rstudio.com, which provides a user-friendly IDE to write, debug, and visualize R
code.
4. RStudio Interface
7. Operators in R
8. Data Types in R
R supports:
- Numeric: Decimal numbers like 3.14
- Integer: Whole numbers with 'L' (e.g., 4L)
- Character: Text strings like "Hello"
- Logical: TRUE/FALSE
- Factor: Categorical (e.g., Gender)
- Complex: Numbers with imaginary parts like 2+3i
9. Functions in R
Appendix: Flashcards
Q: What is R?
A: An open-source language for statistical computing and data analysis.
Business Analytics Unit III: Getting Started with R
Q: What is RStudio?
A: A user-friendly IDE for R programming.
Q: What is a vector in R?
A: A one-dimensional data structure with same type elements.
Q: What is a factor?
A: A categorical data type with fixed levels.