Learn R Programming

chunkR (version 1.0.0)

reader methods: Manipulation methods for reader objects

Description

Reader objects can be manipulated with the following methods:

  1. next_chunk: allows to read the next chunk of a reader object

  2. get_matrix: retrieve the current data chunk contained in the object, as matrix

  3. get_dataframe: retrieves the current data chunk, as a data frame

In addition, this information can be retrieved from reader objects:

  1. get_completed: get the number of rows already read

  2. get_colnames: get column names of the reader object

Usage

next_chunk(obj)

# S4 method for reader next_chunk(obj)

get_matrix(obj)

# S4 method for reader get_matrix(obj)

get_dataframe(obj)

# S4 method for reader get_dataframe(obj)

get_completed(obj)

# S4 method for reader get_completed(obj)

get_colnames(obj)

# S4 method for reader get_colnames(obj)

Arguments

obj

object of class reader

Details

See reader for examples.