viewerDataText {rdataviewer}R Documentation

Prepare a text file for viewing.

Description

This function derives various important attributes of a text file and stores them so that viewing the file can occur efficiently.

Usage

viewerDataText(filename, width = NULL, estimate = NULL, index = FALSE, ...)

Arguments

filename Name of the file.
width The number of characters on each line to view.
estimate A number of lines of the file to be read to estimate the maximum line length.
index A logical value indicating whether to generate a byte index to the start of each line in the file.
... Arguments passed to the function(s) used to read the file (not currently used).

Details

If both width and estimate are NULL then the maximum line width is determined by reading the entire file.

For large files, setting index=TRUE will vastly speed up the initialisation and viewing of the file.

Value

An object of class "ViewerDataText".

Author(s)

Paul Murrell

See Also

ViewerDataText and viewerData


[Package rdataviewer version 0.1 Index]