Skip to content
Prev 14930 / 15274 Next

Select best worst

Try a *minimal* example...  

I'm not going to take the time to sort through your code, especially
with all the totally unnecessary mutates and pipes.


cret <- rnorm(10) # dummy cumulative returns
names(cret) <- c('a','b','c','d','e','f','g','h','i','j')
sort(cret)

You should be able to easily use this to get the order of the columns
that you want.

Regards,

Brian