I am trying to get some unique combinations of two variables. 
For each value of x, I would like to have this unique y value, and drop those have several y values. But several x values could share same y value. 
For example,
a=data.frame(x=c(1,1,2,4,5,5),y=c(2,3,3,3,6,6)),
and I would like to get the output like:
b=data.frame(x=c(2,4,5),y=c(3,3,6))
I have tried unique(), but it does not help this situation. 
Thank you!
 
     
     
    