0

I have a data.frame that looks like this:

 A     name_a    
 A     name_a    
 A     name_a    
 B     name_b
 B     name_b
 B     name_b
 C     name_c
 C     name_c
 C     name_c      

I would like the following output:

 A     name_a    
 B     name_b    
 C     name_c    

I used the following string:

df_subsetted = df[unique(df[,2]), ]    

but it seems not to work. What can I try next?

halfer
  • 19,824
  • 17
  • 99
  • 186
Bfu38
  • 1,081
  • 1
  • 8
  • 17

0 Answers0