Learn R Programming

wordspace (version 0.2-0)

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)

Arguments

x

an object of class dsm

Value

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

Details

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

See Also

dsm, check.dsm, print.dsm