as.data.frame.dfm: Convert a dfm to a data.frame

Description Usage Arguments See Also

View source: R/dfm-classes.R

Description

Deprecated function to convert a dfm into a data.frame. Recommended that you use convert(x, to = "data.frame") instead.

Usage

1
2
3
## S3 method for class 'dfm'
as.data.frame(x, row.names = NULL, ...,
  document = docnames(x), check.names = FALSE)

Arguments

x

any R object.

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

...

unused

document

optional first column of mode character in the data.frame, defaults docnames(x). Set to NULL to exclude.

check.names

logical. If TRUE then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names and are not duplicated. If necessary they are adjusted (by make.names) so that they are.

See Also

convert


quanteda documentation built on Nov. 2, 2018, 1:05 a.m.