How can you reverse a string of numbers in R?
for instance, I have a vector of about 1000 six digit numbers, and I would like to know if they are palindromes. I wo
Edit: I misread the question. Here's my answer for posterity.
You can use the rev function:
rev
> 1:10 [1] 1 2 3 4 5 6 7 8 9 10 > rev(1:10) [1] 10 9 8 7 6 5 4 3 2 1