-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
  • 34,719
  • 24
  • 185
  • 251

1 Answers1

2

You can just use unique

 unique(d1)
akrun
  • 789,025
  • 32
  • 460
  • 575