[R] paste argument of a function as a file name

Luis Ridao Cruz Luisr at frs.fo
Thu Nov 10 14:28:25 CET 2005


R-help,

I have a function which is exporting the output to a file via
write.table(df, file =  "file name.xls" )

What I want is to paste the file name (above) by taking the argument to
the function as a file name 

something like this:

MY.function<- function(df)
{
...
...
write.table(df,"argument.xls")
}
MY.function(argument)


Thank you




More information about the R-help mailing list