slashslash {proccalibrad} | R Documentation |
Remove double slash (slash a slash)
Description
Shortcut for: gsub(pattern="//", replacement="/", x=tmpstr)
Usage
slashslash(tmpstr)
Arguments
tmpstr |
a path that you want to remove double slashes from |
Details
This function is useful for removing double slashes that can appear in full pathnames due to inconsistencies in trailing slashes in working directories etc.
Value
outstr a string of the fixed path
Examples
tmpstr = "/Library/Frameworks/R.framework/Versions/2.15/Resources/library/
MOD03.A2016209.0515.005.NRT.hdf"
outstr = slashslash(tmpstr)
outstr
[Package proccalibrad version 0.14 Index]