r...@quantide.com wrote: > I agree on the database solution. > Database are the rigth tool to solve this kind of problem. > Only consider the start up cost of setting up the database. This could > be a very time consuming task if someone is not familiar with database > technology.
and won't pay if you want to do the lookup just once. > > Using file() is not a real reading of all the file. This function will > simply open a connection to the file without reading it. > countLines should do something lile "wc -l" from a bash shell ... and wc knows the count of lines in a file without reading it vQ ______________________________________________ R-help@r-project.org 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.