Displaying 1 result from an estimated 1 matches for "orderxuyd".
2008 Aug 21
1
order(x,y, decreasing = c(FALSE, TRUE)) - how / elegantly?
...t;) and similar things;
one thing to consider *is* using an 'na.last = . ' correctly,
and I haven't had the need for that and so not bothered to "do it"}
## Here's a script with my version and a small example
## (if you want speed comparisons, use larger examples) :
orderXuYd <- function(x,y)
{
## Purpose: order(x,y): x up, y down
## ----------------------------------------------------------------------
## Arguments: x,y: vectors of the same length
## ----------------------------------------------------------------------
## Author: Martin Maechle...