Re: [R] using paste and

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Sat 20 Aug 2005 - 01:08:40 EST

roger bos <roger.bos <at> gmail.com> writes:
> Sometimes even the easy stuff is difficult (for me)... I want to get
> input from different places to paste together an excel filename (so

Have you considered

  1. the file.path() function,
  2. the fact that forward slashes also work on Windoze?

Your first example, with an outer paste() for the suffix:

> paste(file.path("R:", "New Ranks", "SMC", "SMC", "20050819"), ".xls", sep="")
[1] "R:/New Ranks/SMC/SMC/20050819.xls"
>

Hth, Dirk



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 20 01:19:30 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:34:18 EST