R: Merge Rows or Columns from Different DSM Objects (wordspace)

merge.dsm {wordspace} | R Documentation

## Merge Rows or Columns from Different DSM Objects (wordspace)

### Description

Warning: this function is deprecated and will be removed in a future release of `wordspace`. It may be re-introduced later with different semantics.

### Usage

      ## S3 method for class 'dsm'
    merge(x, y, ..., rows=TRUE, all=FALSE, term.suffix=NULL)

### Arguments

`x, y, ...` | two or more objects of class `dsm` to be merged
`rows` | whether to merge rows (TRUE, default) or columns (FALSE) of the DSM matrices
`all` | if FALSE (default), only features shared by all DSMs are included in the merged DSM (or target terms with `rows=FALSE`). If TRUE, all features are included with missing frequency / score values replaced by zero (analogously for target terms with `rows=FALSE`). This option is not implemented yet.
`term.suffix` | optional character vector specifying one suffix string for each DSM, which will be appended to row (`rows=TRUE`) or column (`rows=FALSE`) labels in order to make them unique

### Value

if `term.suffix` is specified, row information of returned DSM object will be extended with variables `orig.term` specifying the original terms and `orig.part` specifying the original component model (identified by the corresponding entry from `term.suffix`)

### Author(s)

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

[Package wordspace version 0.2-6 Index]