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: guozhuwen@gmail.com
douban: http://www.douban.com/people/wentrue/
blog: http://www.wentrue.net/blog/
twitter: https://twitter.com/wentrue

	[[alternative HTML version deleted]]


