[R] A question on vector

Christofer Bogaso
2013-06-25T14:28:21Z

Hello again,

I have found that, in a vector if many elements have same names then
calling those elements with their names does not look complete. Here
is 1 example:

My_Vector <- c("a" = 'a', "a" = 'b')


then,

> My_Vector['a']
  a
"a"


I was expecting both elements should be shown up.

Is there any mechanism to force R do that?

Thanks and regards,