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@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.

Reply via email to