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])

koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.