R: Summary of a textmatrix (Matrices)

summary.textmatrix {lsa} | R Documentation

## Summary of a textmatrix (Matrices)

### Description

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

### Usage

    ## S3 method for class 'textmatrix'
    summary( object, ... )

### Arguments

`object` | A textmatrix.
`...` | Arguments to be passed on

### 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.

### Value

`matrix` | Returns a matrix.

### 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
    summary(m)

[Package lsa version 0.73.1 Index]