as.matrix.dfm: Coerce a dfm to a matrix or data.frame

Description Usage Arguments Examples

View source: R/dfm-classes.R

Description

Methods for coercing a dfm object to a matrix or data.frame object.

Usage

1
2
## S3 method for class 'dfm'
as.matrix(x, ...)

Arguments

x

dfm to be coerced

...

unused

Examples

1
2
# coercion to matrix
as.matrix(data_dfm_lbgexample[, 1:10])

quanteda/quanteda documentation built on Feb. 16, 2019, 5:45 a.m.