Hi, I wrote a C extension for R. Within the C code I wanted to invoke the
R's sort function, with the argument "index.return = TRUE". I found it is a
difficult problem, how can I do that? I have implemented the decreasing
sorting by the code "PROTECT(R_fcall = lang3(install("sort"), x, desc));",
but how to define the "index.return" argument?

Thanks in advanced!

-- 
Guozhu. Wen
mail: [email protected]
douban: http://www.douban.com/people/wentrue/
blog: http://www.wentrue.net/blog/
twitter: https://twitter.com/wentrue

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to