Thanks a lot for all the responses. The general drift of all the messages was the suggestion to use some database management package that has a nice interface with R; and most of the suggestions pointed in the direction of SQL. I will look into the SQL package and start learning to use it along with R. Thanks once again for all your suggestions. Deepankar