Skip to content
Prev 304408 / 398503 Next

return first index for each unique value in a vector

On 8/28/2012 5:52 PM, Bert Gunter wrote:
Another way that works is:
as.numeric(rownames(unique(data.frame(A)[1])))

However, this may not be too efficient.