[R] Get the filename from the given path

Rainer M Krug r.m.krug at gmail.com
Fri Aug 17 16:00:52 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/08/12 15:04, Berend Hasselman wrote:
> 
> On Fri, Aug 17, 2012 at 5:28 AM, Rantony <antony.akkara at ge.com> 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 ?
>> 
> 
> Please don't shout.

Just to explain - not everybody knows this:

writing in capital letters is considered as "shouting" in emails and in forums, and not used to
highlight certain parts.

Cheers,

Rainer


> 
> ?basename
> 
> 
> Berend
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAuTpQACgkQoYgNqgF2egqDSwCePmmZ7blv4vlwqF8ANufs13x8
YccAnA+eqjGmueHlOup083/WfSbNP7RL
=McDs
-----END PGP SIGNATURE-----




More information about the R-help mailing list