Installing R and RStudio
R and RStudio were already installed on my system prior to starting this course. I have used these tools before, so I did not encounter any issues during installation for this assignment. I opened RStudio successfully and confirmed that the console was working as expected.
Since both programs were previously installed, no troubleshooting was required. I verified that RStudio was correctly connected to R by checking that the console loaded properly and accepted commands without errors.
I am using macOS (version Sequoia 15.6.1). My installed R version is 4.5.1 and my RStudio version is 2025.05.1+513. After confirming the versions, I was able to proceed without any problems.
Understanding R Vectors
An R vector is the most basic and essential data structure in R and represents a sequence of values of the same data type, such as numeric, character, or logical values. According to Matloff, vectors are the “workhorse” of R because many higher-level structures, including matrices and data frames, are built on top of them, and most operations in R are designed to work directly on vectors rather than individual elements. Wickham also emphasizes that vectors are fundamental because R is a vectorized language, meaning operations are applied to entire vectors at once, which makes data analysis more efficient and expressive. This vectorized approach allows R users to write cleaner, faster code and is a core reason why vectors play such a central role in data analysis workflows.

Comments
Post a Comment