Skip to content
Prev 32187 / 398506 Next

How to split a dataframe into smaller constituent dataframes

On Sun, May 18, 2003 at 10:11:11PM +0000, Neil Osborne wrote:
I would convert all your dates to DateTimeClass (i.e. POSIXct or POSIXlt),
e.g. using strptime, and then loop over them doing your subsetting at each
grid step you specify.  R really has excellent facilities to compute on, or
compare, dates up to Unix timestamp precision.

Alternatively, if the data lives in a DBMS you could simply tailor your
queries to the desired grid sizes and retrieve individual chunks and store
those.

Hth, Dirk