I\'m trying to teach myself R and in doing some sample problems I came across the need to reverse a string.
Here\'s what I\'ve tried so far but the paste operation d
The easiest way to reverse string:
#reverse string---------------------------------------------------------------- revString <- function(text){ paste(rev(unlist(strsplit(text,NULL))),collapse="") } #example: revString("abcdef")