Skip to content
Prev 59940 / 398502 Next

sorting a data.frame using a vector

"Liaw, Andy" <andy_liaw at merck.com> writes:
Yes, the internals are using  

   pmatch(i, rows, duplicates.ok = TRUE)

and pmatch() is a horrible lot slower than match(). Anyone for a spot
of hardcore optimization?

(Partial matching of character indices is a feature long regretted by
its inventors, but every time we consider killing it, we tend to recoil
in horror upon realizing what it would break...)