Learn R Programming

quanteda (version 1.3.13)

as.matrix.dfm: 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 dfm
as.matrix(x, ...)

Arguments

x

dfm to be coerced

...

unused

Examples

Run this code
# NOT RUN {
# coercion to matrix
as.matrix(data_dfm_lbgexample[, 1:10])

# }

Run the code above in your browser using DataLab