- rev
- reverse
Reverse vector
examples/vectors/reverse.R
fruits = c("apple", "peach", "lemon", "banana", "ananas") rev(fruits) # "ananas" "banana" "lemon" "peach" "apple"
fruits = c("apple", "peach", "lemon", "banana", "ananas") rev(fruits) # "ananas" "banana" "lemon" "peach" "apple"