[R] read file part way through based on start and end date (first column)

From: algotr8der <algotr8der_at_gmail.com>
Date: Sun, 20 Mar 2011 12:47:26 -0700 (PDT)

Hello folks - I have been trying to figure this out. I have a set of very large files that are of this format

, , , ,

1/4/1999,9:31:00 AM,blah, blah, blah
1/4/1999,9:32:00 AM,blah, blah, blah
1/4/1999,9:33:00 AM,blah, blah, blah

I want to write R code that reads only that data between a start and an end date (data is presented from oldest at the top of the file to the most recent at the bottom of the file). I'm not sure if there is an R function that makes this easy.

I know the read.csv function enables you to skip a user specified number of rows before the file is read but this doesnt exactly help me as my start and end dates can be anywhere in between.

Appreciate the help.

View this message in context: http://r.789695.n4.nabble.com/read-file-part-way-through-based-on-start-and-end-date-first-column-tp3391769p3391769.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 20 Mar 2011 - 20:57:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Mar 2011 - 05:00:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive