Zhiliang Ma wrote: > Thanks, Barry. > In fact, I have a function just like yours, and I'm looking for a simple > alternative function, which is like "path" in Matlab.
Dont think it can be done - if you look at the code for 'scan', it disappears off into internal() calls to do the business of finding and reading a file, so you're going to have trouble changing its behaviour in R. You'd have to patch R's C source to implement a search path. Barry ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
