master
dplyr
my_named_vec <- c('a' = 1, 'b' = 2, 'c' = 3)
my_named_vec[3] ## c ## 3
my_named_vec['b'] ## b ## 2
my_unnamed <- c(1:10)
my_labels <- letters[1:10]
names(my_unnamed) <- my_labels
my_unnamed['g'] ## g ## 7
my_unnamed[7] ## g ## 7