You can probably get around it, by using the `indexin` function

redunant = rand(1:4,10)    # [1,3,3,4,3,1,3,3,3,4]
slimmed = unique(redunant) # returns in my case [1,2,3,4]

indexin(slimmed, redunant) # returns [6, 9, 10], which is one of the 
possibilities


It's almost easier to modify either `unique` or modify one of the `findin` 
or `indexin` functions to make your own unique which returns indexes

Reply via email to