Vectors in R

Data Science with R Programming 6 min min read Updated: Mar 07, 2026 Beginner
Vectors in R
Beginner Topic 2 of 10

Vectors in R

A vector is the most basic data structure in R. It stores elements of the same data type.

r vector_example <- c(1,2,3,4,5) print(vector_example)

Next Tutorial: Matrices in R

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators