Learn R Programming

wordspace (version 0.2-8)

dim.dsm: Dimensions of a DSM Object (wordspace)

Description

Retrieve the dimensions of the co-occurrence and/or score matrix represented by a DSM object.

Usage

# S3 method for dsm
dim(x)

Value

An integer vector of length 2, specifying the number of rows and the number of columns of the DSM matrix.

Arguments

x

an object of class dsm

Author

Stephanie Evert (https://purl.org/stephanie.evert)

Details

Note that an assignment form (dim<-) for modifying dimensions is not provided.

See Also

dsm, check.dsm, print.dsm, dimnames.dsm

Examples

Run this code
dim(DSM_TermTerm)

Run the code above in your browser using DataLab