[R] pasting "\" into character strings
Jeff Gentry
jgentry at jimmy.harvard.edu
Sun Dec 22 09:33:03 CET 2002
> write an R function that writes references to Windows files into a text
> file, where a different Windows programs will later read these references
> in the standard Windows syntax.
> Can someone tell me how to create the character string
> 'c:\work\part1.txt' from the parts, "c:", "work", an "part1.txt"?
I don't have access to a Windows machine right now to test this, but might
file.path() help here?
-J
More information about the R-help
mailing list