[R] return first index for each unique value in a vector
Noia Raindrops
noia.raindrops at gmail.com
Wed Aug 29 00:49:56 CEST 2012
Hi,
Try this:
order(A)[!duplicated(sort(A))]
--
Noia Raindrops
noia.raindrops at gmail.com
More information about the R-help
mailing list