Learn R Programming

quanteda (version 0.9.2-0)

cbind.dfm: combine dfm object by columns

Description

Combine two or more dfm objects by columns. An implementation of cbind for dfm objects. Calls cbind2 defined for object classes in the Matrix package.

Usage

cbind.dfm(x, y, ...)

Arguments

x
a dfm object
y
a second dfm object to be joined column-wise to the first
...
optional arguments for methods

Value

  • A dfm object with combined features from input dfm objects. The attributes of this new dfm are not currently preserved.

Examples

Run this code
dfm1 <- dfm("This is a sample text.", verbose = FALSE)
dfm2 <- dfm("one two three", verbose = FALSE)
cbind(dfm1, dfm2)

Run the code above in your browser using DataLab