dim_dsm: Dimensions of a DSM Object (wordspace)

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
## S3 method for class 'dsm'
dim(x)

Arguments

x

an object of class dsm

Details

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

Value

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

Author(s)

Stefan Evert (http://purl.org/stefan.evert)

See Also

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

Examples

1

Example output

Loading required package: Matrix
[1] 7 7

wordspace documentation built on Jan. 9, 2020, 1:08 a.m.