summary.textmatrix {lsa} | R Documentation |
Return a summary with some statistical infos about a given textmatrix.
## S3 method for class 'textmatrix'
summary( object, ... )
object |
A textmatrix. |
... |
Arguments to be passed on |
Returns some statistical infos about the textmatrix x
:
number of terms, number of documents, maximum length of a term,
number of values not 0, number of terms containing strange
characters.
matrix |
Returns a matrix. |
Fridolin Wild f.wild@open.ac.uk
# 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
summary(m)