v <- 1:4 names(v) <- c("one", "two", "three", "four") v # one two three four # 1 2 3 4 unname(v) # [1] 1 2 3 4 v # one two three four # 1 2 3 4
Index