Access the n-the element of a vector
- It is some_vector[n]
- It is 1-based
examples/vectors/access_vector_element.R
distances = c(11, 12, 13, 14) distances[1] # 11 distances[4] # 14 distances[5] # NA
distances = c(11, 12, 13, 14) distances[1] # 11 distances[4] # 14 distances[5] # NA