search for: my_read_funct

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

2005 Apr 14
2
Reading and coalescing many datafiles.
...to solve, the raw data for which are accumulated in a bunch of time-and-date-based files. /some/path/2005-01-02-00-00-02 etc. The best 'read all these files' method I've seen in the r-help archives comes down to for (df in my_list_of_filenames ) { dat <- rbind(dat,my_read_function(df)) } which, unpleasantly, is O(N^2) w.r.t. the number of files. I'm fiddling with other idioms to accomplish the same goal. Best I've come up with so far, after extensive reference to the mailing list archives, is my_read_function.many<-function(filenames) { filename...