Last data update: 2014.03.03
Shortcut for: gsub(pattern="//", replacement="/", x=tmpstr)
gsub(pattern="//", replacement="/", x=tmpstr)
slashslash(tmpstr)
tmpstr
a path that you want to remove double slashes from
This function is useful for removing double slashes that can appear in full pathnames due to inconsistencies in trailing slashes in working directories etc.
outstr a string of the fixed path
Nicholas J. Matzke matzke@berkeley.edu
gsub
tmpstr = "/Library/Frameworks/R.framework/Versions/2.15/Resources/library/modiscloud/extdata/2002raw//MYD03.A2002185.0645.005.2009192031332.hdf" outstr = slashslash(tmpstr) outstr