For a vector of named values `vec = 1:3`, `names(vec) = c('x1','x2','x1')`, how R deals with different values with the same name? For example `vec['x1']` only returns the first value named 'x1'. What if I want to access other values with the same name? Though it's not a good idea to have different objects sharing the same name.