A vector is the simplest and most common data structure in R β itβs basically a list of values of the same type (numeric, character, logical, etc.).
π Key Facts
Vectors hold multiple values of the same type.
Create them using the c() function.
You can perform operations on entire vectors at once β no loops needed!
π Example: Creating & Using Vectors
Console output will appear here...
π‘ Tip: You can access vector elements using square brackets, like numbers[2] to get the second value.