0Pricing
R Academy · Lesson

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.

Working with Vectors and Matrices — illustration 1

2

Creating Vectors

You can create vectors using the c() function.

numbers <- c(1, 2, 3, 4, 5)
numbers

All lessons in this course

  1. Understanding Data Types
  2. Working with Vectors and Matrices
  3. Lists and Data Frames
← Back to R Academy