search for: filename_c

Displaying 1 result from an estimated 1 matches for "filename_c".

Did you mean: filename_
1999 Apr 14
2
character vector as input to function?
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: doit<-function(filename) { x<-scan("~/rstuff/data/"filename) #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