To reverse a vector in R, you can use the built-in rev()
function. Here's an example:
main.r161 chars10 lines
Alternatively, you can reverse a vector by indexing it in reverse order. Here's an example:
main.r184 chars10 lines
gistlibby LogSnag