dimnames_dsm: Dimnames of a DSM Object (wordspace)

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

Description

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

Usage

1
2
3
4
## S3 method for class 'dsm'
dimnames(x)
## S3 replacement method for class 'dsm'
dimnames(x) <- value

Arguments

x

an object of class dsm

value

a list of two character vectors with new row and column names for x. Both vectors must have appropriate length and may not be NULL.

Details

This method automatically checks that the row and column names of the co-occurrence and/or score matrix are consistent with the target terms and features listed in the row/column information tables.

Value

The dimnames() of a DSM object are always a list of length 2, consisting of two character vectors with row and column labels, respectively.

Author(s)

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

See Also

dsm, check.dsm, dim.dsm

Examples

1
2
3
4
5
6

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