# Vectors in R (part 1)

# Vectors

R is a vector‐based language. You can think of a vector as a row or column of numeric data, character data, or logical data. The list of numbers {1,2,3,4,5}, for example, could be a vector. Unlike most other programming languages, R allows you to apply functions to the whole vector in a single operation without the need for an explicit loop.