[R] A question on vector

Christofer Bogaso bogaso.christofer at gmail.com
Tue Jun 25 16:28:21 CEST 2013


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,



More information about the R-help mailing list