Re: [R] Get the filename from the given path

2012-08-18 Thread Uwe Ligges
On 17.08.2012 14:02, Michael Meyer wrote: Do splits <- strsplit(filePath,"file://%22,fixed=true)[[1/]] fileName <- splits[length(splits)]) And what is your question now? If this is an answer, and we really appreciate people who try to help, please a) cite the question and b) provide answ

Re: [R] Get the filename from the given path

2012-08-17 Thread William Dunlap
tory but "c:/" is [1] "c:/" Linux> dirname("c:/file") [1] "c:" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: arun [mailto:smartpink...@yahoo.com] > Sent: Friday, August 17, 2012 1:20 PM

Re: [R] Get the filename from the given path

2012-08-17 Thread William Dunlap
..@r-project.org] On > Behalf > Of Rantony > Sent: Friday, August 17, 2012 4:56 AM > To: r-help@r-project.org > Subject: Re: [R] Get the filename from the given path > > Thanks pramod. > > > > From: Pramod [via R] [mailto:ml-node+s789695n4640600...@n4.nabble.c

Re: [R] Get the filename from the given path

2012-08-17 Thread R. Michael Weylandt
On Aug 17, 2012, at 10:00 AM, Rainer M Krug wrote: > -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 wrote: >>> Hi, >>> >>> Here i have a file path, for eg : - FPath <- "D:\\MyFolder\\MyFile.txt" >

[R] Get the filename from the given path

2012-08-17 Thread Michael Meyer
Do   splits <- strsplit(filePath,"file://%22,fixed=true)[[1/]] fileName <- splits[length(splits)]) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

Re: [R] Get the filename from the given path

2012-08-17 Thread Uwe Ligges
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.nabb

Re: [R] Get the filename from the given path

2012-08-17 Thread Rantony
Thanks pramod. From: Pramod [via R] [mailto:ml-node+s789695n4640600...@n4.nabble.com] Sent: Friday, August 17, 2012 5:24 PM To: Akkara, Antony (GE Energy, Non-GE) Subject: Re: Get the filename from the given path x <- substr(FPath,13,nchar(FPath)) should give you the desired output.

Re: [R] Get the filename from the given path

2012-08-17 Thread Rui Barradas
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:

Re: [R] Get the filename from the given path

2012-08-17 Thread Rainer M Krug
-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 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 ? >>

Re: [R] Get the filename from the given path

2012-08-17 Thread Berend Hasselman
On Fri, Aug 17, 2012 at 5:28 AM, 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 ? > Please don't shout. ?basename Berend __ R-hel

Re: [R] Get the filename from the given path

2012-08-17 Thread R. Michael Weylandt
On Fri, Aug 17, 2012 at 5:28 AM, 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 ? > Quite possibly by yelling at it or regular expressions: you know, whatever > - thanks in a

[R] Get the filename from the given path

2012-08-17 Thread Rantony
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 t