powered by
Check for a dfm, or convert a matrix into a dfm.
is.dfm(x)as.dfm(x)
as.dfm(x)
a dfm object
is.dfm returns TRUE if and only if its argument is a dfm.
is.dfm
TRUE
as.dfm coerces a matrix or data.frame to a dfm. Row names are used for docnames, and column names for featnames, of the resulting dfm.
as.dfm
as.data.frame.dfm, as.matrix.dfm
as.data.frame.dfm
as.matrix.dfm