[R] character vector as input to function?

Bill Simpson wsimpson at gcal.ac.uk
Wed Apr 14 08:24:11 CEST 1999

I would like to have a function that inputs a file name, then reads that
data file and does various stuff to it.
Something like:

#for example, if filename is a0.dat, it will scan("~/rstuff/data/a0.dat")  

Can someone please tell me how to do this?

Thanks for any help!

Bill Simpson

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