ppc.remove.beforeslash.and.suffix {ppc} | R Documentation |
This function takes a character file name or vector of character file names, and removes the character before the rightmost slash, and the suffix after the last dot. Eg "file/foo/junk.csv" becomes "junk"
ppc.remove.beforeslash.and.suffix(x)
x |
Character string or vector of character strings. |
Character string or vector of character strings, modified in the manner descibed above.
Balasubramanian Narasimhan and Rob Tibshirani
## for a complete worked example of this function in a PPC analysis see ## http://www-stat.stanford.edu/~tibs/PPC/Rdist/Rscript.rawdata