
Last chance! 50% off unlimited learning
Sale ends in
"as.matrix"(x, ...)
"as.data.frame"(x, row.names = NULL, optional = FALSE, ...)
FALSE
, do not set the row names of the data.frame
to the docnames of the dfm (default); or a vector of values to which the
row names will be set.# coercion to matrix
mydfm <- dfm(data_char_inaugural)
str(as.matrix(mydfm))
# coercion to a data.frame
inaugDfm <- dfm(data_char_inaugural[1:5])
as.data.frame(inaugDfm[, 1:10])
as.data.frame(inaugDfm[, 1:10], row.names = FALSE)
Run the code above in your browser using DataLab