[R] Date: Thu, 26 Sep 2002 12:13:33 +0200

Jason Turner jasont at indigoindustrial.co.nz
Thu Sep 26 02:45:29 CEST 2002


On Thu, Sep 26, 2002 at 12:17:09PM +0200, Nolwenn Le Meur wrote:
> How can I give the name of my data frame to the output file ?
> 
> exp:
> mydata<-read.table(mydata,..)
> ...
> ...
> write.table(x, file="c:/" mydata,...)

write.table(x,file=paste(sep="","c:/",deparse(substitute(mydata))))

Check the help files on deparse(), substitute(), and paste()

Jason
-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont at indigoindustrial.co.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list