R/reverse.R

Defines functions reverse

Documented in reverse

reverse <-
function(str, split="") {
  # see ?strsplit
  sapply(lapply(strsplit(x, split),rev), paste, collapse="")
}
vlulla/vlutils documentation built on May 21, 2019, 12:35 a.m.