[R] Reimplement order somehow

Vladimir Eremeev wl2776 at gmail.com
Wed Oct 3 16:06:09 CEST 2007

XpeH wrote:
> I am trying to understand how the order method in R language works, and
> then I'd like to do the same in some other language. 

1. Type order in R command prompt (without "(" and ")") and press enter.
This will print you the body of this function, so you can inspect it. You
can save it to a file using your OS clipboard or with dump("order").

> install.packages("debug")
> library(debug)
> mtrace(order)
> order(o)

o is the variable, you've created in your previous email.

This allows you to trace the function and inspect the variables in each

View this message in context: http://www.nabble.com/Reimplement-order-somehow-tf4561576.html#a13019651
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list