head.dsm: Return the Top Left Corner of a DSM Matrix (wordspace)
Description
Returns the first n rows and first k columns of the co-occurrence matrix stored in a dsm object.
If a scored matrix is available, it is automatically used; otherwise the raw frequencies are shown.
Usage
# S3 method for dsm
head(x, n = 6L, k = n, ...)
Value
A dense or sparse co-occurrence matrix with n rows and k columns.
Arguments
x
an object of class dsm
n
a single integer specifying the number of rows to extract
k
a single integer specifying the number of columns to extract (default: same as number of rows)