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

View source: R/dfm-classes.R

as.matrix.dfmR Documentation

Coerce a dfm to a matrix or data.frame

Description

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

Usage

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

Arguments

x

dfm to be coerced

...

unused

Examples

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


quanteda/quanteda documentation built on May 5, 2024, 8:33 p.m.