This chapter introduces R, a free, open-source programming environment designed for data analysis and statistical computing. It covers R installation through RStudio IDE and demonstrates fundamental programming concepts including basic syntax, mathematical operations, and logical operators.
Key topics include data types (numeric, integer, character, logical, factor), data structures (vectors, matrices, lists), control structures (if-else statements, for/while loops), and functions for code organization and reusability.
The chapter emphasizes R’s advantages for data science: powerful statistical capabilities, extensive package ecosystem, and built-in data handling features. It concludes with R Markdown, which enables creation of professional reports combining code, output, and documentation in a single document for reproducible research and presentation.