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
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
..@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
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"
>
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
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
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.
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:
-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 ?
>>
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
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
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
12 matches
Mail list logo