[R] duplicated names and values
John Kane
jrkrideau at yahoo.ca
Fri Sep 21 22:34:01 CEST 2007
Galina,
It is not clear to me. Are the names and the values
always the same or are there different values for some
of the names
Example same name & same value
A B B C B A
3 2 2 1 2 3
or same names but different values
A B B C B A
3 2 1 1 2 3
--- "Glazko, Galina"
<Galina_Glazko at urmc.rochester.edu> wrote:
> Dear list,
>
>
>
> I am sorry about this simple question, but somehow I
> can not figure out
> how to solve my problem, may be you could help?
>
> I have a vector mir3:
>
> > length(mir3)
>
> [1] 220671
>
>
>
> >head(mir3)
>
> rno-miR-30c rno-miR-30c
> rno-miR-30d
> rno-miR-30e "ENSRNOT00000049288"
> "ENSRNOT00000049288"
> "ENSRNOT00000049288" "ENSRNOT00000049288"
>
> rno-miR-145 rno-miR-145
> rno-miR-379
>
> "ENSRNOT00000049288" "ENSRNOT00000049288"
> "ENSRNOT00000061859" ....
>
>
>
> The names there (such as
> "rno-miR-30c","rno-miR-30d"...) can be
> duplicated, as well as the values (e.g
> "ENSRNOT00000049288")
>
> I need the vector were unique names have always
> different values.
>
> That is, all entries like:
>
> rno-miR-30c rno-miR-30c
>
> "ENSRNOT00000049288" "ENSRNOT00000049288"
>
> I have to change into single entry:
>
> rno-miR-30c
>
> "ENSRNOT00000049288"
>
> ..
>
>
>
> Thank you!
>
> Best regards
>
> Galina
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>
More information about the R-help
mailing list