
Last chance! 50% off unlimited learning
Sale ends in
SplitPath(path, last.is.file = NULL)
NULL
(default), the last entry will be interpreted if the last character is either \ or / and as filename else.dirname
, basename
## Not run: # Windows-specific example
# path <- "C:/Documents/Projects/Import/eyestudy.dta"
# SplitPath(path)
#
# path <- "C:/Documents/Projects/Import/"
# SplitPath(path)
#
# path <- "C:/Documents/Projects/Import"
# SplitPath(path) # last entry will be taken as filename
# SplitPath(path, last.is.file=FALSE)
# ## End(Not run)
Run the code above in your browser using DataLab