[R] Reimplement order somehow
Vladimir Eremeev
wl2776 at gmail.com
Wed Oct 3 16:11:16 CEST 2007
Vladimir Eremeev wrote:
>
>
> 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").
>
> 2.
>> 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
> step.
>
>
Sorry, this is incorrect method to study this function, because it calls the
internal function written, probably, in C.
Well, you still can download and study R sources.
--
View this message in context: http://www.nabble.com/Reimplement-order-somehow-tf4561576.html#a13019660
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list