print.textmatrix: Print a textmatrix (Matrices)

print.textmatrixR Documentation

Print a textmatrix (Matrices)

Description

Display a one screen short version of a textmatrix.

Usage

## S3 method for class 'textmatrix'
print( x, bag_lines, bag_cols, ... )

Arguments

x

A textmatrix.

bag_lines

The number of lines per bag.

bag_cols

The number of columns per bag.

...

Arguments to be passed on.

Details

Document-term matrices are often very large and cannot be displayed completely on one screen. Therefore, the textmatrix print method displays only clippings (‘bags’) from this matrix.

Clippings are taken vertically and horizontally from beginning, middle, and end of the matrix. bag\_lines lines and bag\_cols columns are printed to the screen.

To keep document titles from blowing up the display, the legend is printed below, referencing the symbols used in the table.

Author(s)

Fridolin Wild f.wild@open.ac.uk

See Also

textmatrix

Examples


# fake a matrix
m = matrix(ncol=800, nrow=400)
m[1:length(m)] = 1:length(m)
colnames(m) = paste("D",1:ncol(m),sep="")
rownames(m) = paste("W",1:nrow(m),sep="")
class(m) = "textmatrix"

# show a short form of the matrix
print(m, bag_cols=5)


lsa documentation built on May 9, 2022, 9:10 a.m.

Related to print.textmatrix in lsa...