[R] Returning only a file path on Windows
ligges at statistik.tu-dortmund.de
Fri May 22 17:17:08 CEST 2009
Are you looking for choose.dir() ?
Or basename() and dirname()?
amvds at xs4all.nl wrote:
> I am choosing a file like this:
> #Bring up file selection box
> Unfortunately, the file path contains the short file name and extension as
> well. I had hoped to get only the path so I could make my own long
> filenames (for output graphs) by concatenation with this file path.
> Of course I can split the string and assemble the components from the
> returned list:
> But there must be a better way?
> Thanks in advance,
> Alex van der Spek
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help