Working with Vectors and Matrices
Create and manipulate vectors and matrices to perform basic mathematical and data operations.
1
Introduction to Vectors in R
Vectors are the most basic data structure in R. They store elements of the same type.

2
Creating Vectors
You can create vectors using the c() function.
numbers <- c(1, 2, 3, 4, 5)
numbersAll lessons in this course
- Understanding Data Types
- Working with Vectors and Matrices
- Lists and Data Frames