ViewerDataText-class {rdataviewer}R Documentation

Class "ViewerDataText"

Description

An object representing the text file to view.

Objects from the Class

Objects can be created using the viewerDataText function.

Slots

filename:
Object of class "character" giving the name of the text file.
width:
Object of class "numeric" giving the maximum number of characters on the longest line in the file.
nlines:
Object of class "numeric" giving the number of lines in the file.
readArgs:
Object of class "list" giving any additional arguments used to read the file (currently not used).
index:
Object of class "numeric" giving a byte index to the start of each line in the file.

Extends

The virtual class "ViewerData", directly.

Methods

colNames
signature(data = "ViewerDataText", cols = "ANY"): provide the names of the specified columns.
colWidths
signature(data = "ViewerDataText"): provide the number of characters in each of the specified columns.
dimensions
signature(data = "ViewerDataText"): provide the number of rows and columns in the data.
getText
signature(data = "ViewerDataText", rows = "ANY", cols = "ANY"): provide a text version of a subset of the data as specified by the rows and columns.

Author(s)

Paul Murrell

See Also

Viewer

Examples

showClass("ViewerDataText")

[Package rdataviewer version 0.1 Index]