Learning to work with data structures is critical for programming in R. Data structures are essential concepts in programming because efficient data storage and operartions rely on them.
In this first lesson of our interactive Data Structures in R course, you will continue adding to your R programming skills as you learn about vectorization, and how to work with vectors in R.
A vector is a data structure that represents a set of values of the same type, allowing for performing group operations. This can make certain kinds of operations and calculations much, much faster than executing them one-by-one. In this lesson, you'll look at how to create, index, modify, add to, remove from, and perform operations with vectors.
After you finish this lesson, you will be comfortable working with vectors, and you'll have a solid understanding of why you might want to use vectors in your data analysis work.
- Introduction to Data Structure: Generating Vectors
- Creating a Vector Using Known Values
- Indexing Vectors by Position
- Indexing Vectors Using Logicals
- Modifying Elements in a Vector
- Appending Elements to a Vector
- Removing Elements from a Vector
- Performing Operations with Vectors
- Vector Recycling
- Vectors Using Names
- Next Steps