-2

I have a table with repeated rows and I need to extract all different rows from that table. The first 10 lines of the table are..

        m         t              d               
 [1,] "ausente" "bovino"       "bife/costeleta"
 [2,] "ausente" "bovino"       "inteiro"       
 [3,] "ausente" "bovino"       "miudezas"      
 [4,] "ausente" "bovino"       "peca"          
 [5,] "ausente" "bovino"       "peq_peca"      
 [6,] "ausente" "bovino"       "preparado"     
 [7,] "ausente" "bovino"       "semi-preparado"
 [8,] "ausente" "bovino/suino" "bife/costeleta"
 [9,] "ausente" "bovino/suino" "inteiro"       
 [10,] "ausente" "bovino/suino" "miudezas" 
Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

2

You can just use unique

 unique(d1)
akrun
  • 874,273
  • 37
  • 540
  • 662