R/add.slash.R

# Add a slash to the end of a directory listing, if required.
add.slash = function(path) {
  if(substring(path, nchar(path), nchar(path)) != "/") {
    path = paste(path, "/", sep = "")
  } # if(substring(path, nchar(path), nchar(path)) != "/"))
  return(path)
} # add.slash()

Try the DOQTL package in your browser

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

DOQTL documentation built on May 6, 2019, 3:09 a.m.