Vectors in R

R Vector is a fixed length collection of similar type of elements.

A vector in R programming is one-dimensional.

A vector in R language can be compared to a one-dimensional array in other programming languages like C, Java, etc.

An R Vector can contain elements belonging to one of these types: logical, integer, double, complex, character and raw.

R Vector Tutorials

Create Vectors

Access Vectors


Other Vector Operations

Vector Checks




In this R Tutorial, we have learnt how to create an R Vector, how to perform arithmetic operations on vectors, what is element recycling in R Vector and also sorting an R Vector.