R vector concepts

An R vector is a data structure that includes an ordered list of elements of the same data type (i.e., numbers, logical values, or characters). Vectors are exceptionally fundamental to data analysis because they serve as building blocks to most other data structures in R. The most crucial feature, vectorized operations, applies functions to whole vectors at once, allowing for easy and efficient data analysis or manipulation. 

References:

  • Chapters 1–2 of Ratloff’s The Art of R Programming

  • Chapters 1–2 of Wickham’s R for Data Science

Comments

Popular posts from this blog

Assignment #5: Matrix Algebra in R

Assignment #3: Analyzing 2016 data “Poll” Data in R

Assignment #4: Visualizing and Interpreting Hospital Patient Data