[R] duplicated names and values
jim holtman
jholtman at gmail.com
Fri Sep 21 22:29:52 CEST 2007
?unique
On 9/21/07, 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list