[R] problem with concatinating string while taking as a path of a file

Simon Blomberg s.blomberg1 at uq.edu.au
Tue Mar 10 06:27:51 CET 2009


 Does this do what you want?

paste(FPATH, Fname, sep="\\")

Simon.

On Tue, 2009-03-10 at 10:48 +0530, venkata kirankumar wrote:
> Hi all,
> 
> I have a problem with concatinating strings while taking as a path here the
> problem is
> 
> i have to take path as
> FPATH<-"D:\\Kiran"
> 
> and file name as
> 
> Fname<-"FINDINGS.CSV"
> and while I am reading  this table I have to take path with using these two
> strings because in     "FPATH"      there is many files like findings.csv,
> and path will be     "D:\\Kiran\\FINDINGS.CSV"
> 
> 
> here i tried with    " FPATH+\\+Fname",  "FPATH~\\~Fname" ,  FPATH&\\&Fname
> and FPATH::\\::Fname
> but I am not able to get path like "D:\\Kiran\\FINDINGS.CSV".
> 
> 
> can any one help me out of this problem.
> 
> 
> thanks in advance.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
-- 
Simon Blomberg, BSc (Hons), PhD, MAppStat. 
Lecturer and Consultant Statistician 
School of Biological Sciences
The University of Queensland 
St. Lucia Queensland 4072 
Australia
Room 320 Goddard Building (8)
T: +61 7 3365 2506
http://www.uq.edu.au/~uqsblomb
email: S.Blomberg1_at_uq.edu.au

Policies:
1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

The combination of some data and an aching desire for 
an answer does not ensure that a reasonable answer can 
be extracted from a given body of data. - John Tukey.



More information about the R-help mailing list