Vectors are a basic data structure in R and are created using the c() function. Unlike data frames and lists, the elements of a vector must be of the same mode. Functions can be used on a vector. For example, length(x) can be used to find the number of elements in x. Furthermore, conditions can