R/stringfunctions.R

#' @importFrom utils tail
stripslash = function (string) {
  laststr = tail(unlist(strsplit(string,"")),1)
  return( ifelse(laststr == "/", substr(string, 1, nchar(string)-1) , string)) 
}

Try the rsatscan package in your browser

Any scripts or data that you put into this service are public.

rsatscan documentation built on June 26, 2024, 5:08 p.m.