Vectors
Here, we will learn what vectors are in R and how to create them.
A Vector is a basic data structure in R. It contains elements of the same type at each index. The data types can be
- Logical
- Integer
- Numeric
- Character
- Complex
Creating Vectors
The keyword vector()
is used to create a vector of a fixed type and fixed length.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy