I have the dataframe below:

```
product<-c("ab","ab","ab","ac","ac")
HD<-c("12","","","","")
HS<-c("","23","","","")
HR<-c("","","34","","")
HO<-c("","","","23","")
DF<-c("","","","","24")
store22<-data.frame(product,HD,HS,HR,HO,DF)

product HD HS HR HO DF
1      ab 12            
2      ab    23         
3      ab       34      
4      ac          23   
5      ac             24

```

I would likr to transform it in a way that I will keep only the unique values of the `product` and as a result bring the values in the same line like this:

```
product HD HS HR HO DF
1      ab 12 23 34      
2      ac          23 24

```