[R] Get the filename from the given path

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Aug 17 13:25:21 CEST 2012



On 17.08.2012 11:28, Rantony wrote:
> 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 ?


basename(FPath)

Uwe Ligges

> - 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