Summary
In this chapter, we covered the essential building blocks in R, including how to leverage and navigate the RStudio IDE, basic arithmetic operations (addition, subtraction, multiplication, division, exponentiation, and modulo), common data structures (vectors, matrices, data frames, and lists), control logic, including relational operators (>
, ==
, <
, >=
, <=
, and !=
) and logical operators (&
, |
, !
, &&
, and ||
), conditional statements using ifelse
, the for
and while
loops, and finally, functions in R. Understanding these fundamental aspects will greatly benefit our learning in later chapters as we gradually introduce more challenging topics.
In the next chapter, we will cover dplyr
, one of the most widely used libraries for data processing and manipulation. Tapping into the various utility functions provided by dplyr
will make it much easier to handle most data processing tasks.