[R] A question on vector

David Carlson dcarlson at tamu.edu
Tue Jun 25 16:47:58 CEST 2013


David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Christofer Bogaso
Sent: Tuesday, June 25, 2013 9:28 AM
To: r-help
Subject: [R] A question on vector

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')


> My_Vector['a']

I was expecting both elements should be shown up.

Is there any mechanism to force R do that?

Thanks and regards,

R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list