rev provides a reversed version of its argument. It is generic
function with a default method for vectors and one for
Note that this is no longer needed (nor efficient) for obtaining
vectors sorted into descending order, since that is now rather more
directly achievable by
sort(x, decreasing = TRUE).
a vector or another object for which reversal is defined.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
1 2 3 4
We want your feedback!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.