[R] Get the filename from the given path

Rui Barradas ruipbarradas at sapo.pt
Fri Aug 17 13:09:25 CEST 2012


Hello,

basename(FPath)

Hope this helps,

Rui Barradas
Em 17-08-2012 10:28, Rantony escreveu:
> Hi,
>
> Here i have a file path,
> for eg : -
> FPath <- "D:\\MyFolder\\MyFile.txt"
>
> HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
>
> - thanks in advance
> Antony.
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp4640578.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list