Re: [R] using paste and

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

roger bos <roger.bos <at>> 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 mailing list PLEASE do read the posting guide! 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