Learn R Programming

RMOA (version 1.1.0)

datastream_ffdf: data streams on an ffdf

Description

Reference object of class datastream_ffdf. This is a class which inherits from class datastream and which can be used to read in a stream from a ffdf from the ff package.

Value

A class of type datastream_ffdf which contains

data:

The ffdf to extract instances from

all fields of the datastream superclass:

See datastream

Arguments

data

a data.frame to extract data from in a streaming way

Methods

  • get_points(n) Get data from a datastream object.

    n

    integer, indicating the number of instances to retrieve from the datastream

See Also

datastream

Examples

Run this code
## You need to load package ff before you can use datastream_ffdf
require(ff)
irisff <- as.ffdf(factorise(iris))
x <- datastream_ffdf(data=irisff)
x$get_points(10)
x
x$get_points(10)
x

Run the code above in your browser using DataLab