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

Emmanuel Paradis paradis at isem.univ-montp2.fr
Thu Sep 26 14:36:22 CEST 2002


At 12:17 26/09/02 +0200, you 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,...)

This may do the trick:

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


EP

>Nolwenn Le Meur
>
>********************************************
>Nolwenn Le Meur
>INSERM U533
>Faculté de médecine
>1, rue Gaston Veil
>44035 Nantes Cedex 1
>France
>
>Tel: (+33)-2-40-41-29-86 (office)
>     (+33)-2-40-41-28-44 (secretary)
>Fax: (+33)-2-40-41-29-50
>mail: nolwenn.lemeur at nantes.inserm.fr
>********************************************
>
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
.-.-
>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
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
._._
>
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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