ViewerDataText-class: Class "ViewerDataText"

Description Objects from the Class Slots Extends Methods Author(s) See Also Examples

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

1
showClass("ViewerDataText")

pmur002/rdataviewer documentation built on May 25, 2019, 10:21 a.m.