I noticed that unique function from Rcpp orders the results
evalCpp("unique(IntegerVector::create(6,6,1,5,5,1))")
[1] 6 5 1
unique(c(6,6,1,5,5,1))
[1] 6 1 5
Is there a way to avoid this ? Thanks for your help
I noticed that unique function from Rcpp orders the results
evalCpp("unique(IntegerVector::create(6,6,1,5,5,1))")
[1] 6 5 1
unique(c(6,6,1,5,5,1))
[1] 6 1 5
Is there a way to avoid this ? Thanks for your help