print.textmatrix | R Documentation |
Display a one screen short version of a textmatrix.
## S3 method for class 'textmatrix' print( x, bag_lines, bag_cols, ... )
x |
A textmatrix. |
bag_lines |
The number of lines per bag. |
bag_cols |
The number of columns per bag. |
... |
Arguments to be passed on. |
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.
Fridolin Wild f.wild@open.ac.uk
textmatrix
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.