This document serves as a foundational guide to R programming and RStudio, covering essential concepts such as installing the software, writing scripts, and executing basic commands. It explains variables, data types, control structures (if statements, loops), and functions, including how to create user-defined functions with parameters. The document emphasizes the importance of understanding R's syntax and provides examples for practical application.