Learn R Programming

ag3stat (version 0.0.1)

ChunkedDF-class: Class "ChunkedDF"

Description

Extends the Streamer Seq class to establish an interface to data.frame content that yields rows upon request.

Arguments

Extends

Class "Seq", directly. Class "Producer", by class "Seq", distance 2. Class "Streamer", by class "Seq", distance 3.

All reference classes extend and inherit methods from "envRefClass".

Fields

Internal fields of this class are are described with 'getRefClass("ChunkedDF")$fields'.

Internal methods of this class are described with 'getRefClass("ChunkedDF")$methods()' and 'getRefClass("ChunkedDF")$help()'.

Examples

Run this code
data(mtcars)
m.s = ChunkedDF(mtcars, yieldSize=10)
sapply(m.s, nrow)
reset(m.s)
all.equal(yield(m.s), mtcars[1:10,])

Run the code above in your browser using DataLab