Learn R Programming

lsa (version 0.73.3)

summary.textmatrix: Summary of a textmatrix (Matrices)

Description

Return a summary with some statistical infos about a given textmatrix.

Usage

# S3 method for textmatrix
summary( object, … )

Arguments

object

A textmatrix.

Arguments to be passed on

Value

matrix

Returns a matrix.

Details

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.

See Also

textmatrix

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab