[R] Isolating string containing only file name from complete path

Sebastian Luque spluque at gmail.com
Mon Jul 11 18:24:00 CEST 2005

"Ken Termiso" <jerk_alert at hotmail.com> wrote:
> Hi all,
> What I'd like to do is to is to be able to extract a string
> corresponding to only the file name from a string containing the
> complete path, i.e. from the following path string:
> "/Users/ken/Desktop/test/runs/file1"
> I would like to end up with:
> "file1"


Sebastian P. Luque

More information about the R-help mailing list