Press "Enter" to skip to content

Operating on Vectors in R

Adrian Tam continues a series on getting started with R:

Vectors in R is the native way of handling data. In addition to the vector operations you saw in the linear algebra textbook, R supports a lot more. In this post, you will learn about:

  • How to manipulate a vector
  • How to treat vectors as sets

Read on for a few examples of how to work with vectors, including in set comparisons.