R/StripTrailingSlashes.R

Defines functions StripTrailingSlashes

StripTrailingSlashes <- function(x) {
  while( grepl("[/\\\\]$", x) ) x <- substring(x, 1, nchar(x) - 1)
  return(x)
}

Try the GDELTtools package in your browser

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

GDELTtools documentation built on Sept. 29, 2023, 9:07 a.m.