ppc.remove.beforeslash.and.suffix {ppc}R Documentation

Remove characters efore a slash and at end

Description

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"

Usage

ppc.remove.beforeslash.and.suffix(x)

Arguments

x Character string or vector of character strings.

Value

Character string or vector of character strings, modified in the manner descibed above.

Author(s)

Balasubramanian Narasimhan and Rob Tibshirani

Examples

## for a complete worked example of this function in a PPC analysis  see
##  http://www-stat.stanford.edu/~tibs/PPC/Rdist/Rscript.rawdata

[Package ppc version 1.01 Index]