as.matrix.dfm.Rd
Methods for coercing a dfm object to a matrix or data.frame object.
# S3 method for dfm as.matrix(x, ...)
x | dfm to be coerced |
---|---|
... | unused |
#> features #> docs A B C D E F G H I J #> R1 2 3 10 22 45 78 115 146 158 146 #> R2 0 0 0 0 0 2 3 10 22 45 #> R3 0 0 0 0 0 0 0 0 0 0 #> R4 0 0 0 0 0 0 0 0 0 0 #> R5 0 0 0 0 0 0 0 0 0 0 #> V1 0 0 0 0 0 0 0 2 3 10