Describe the bug
data.frame() in https://github.com/quanteda/quanteda/blob/master/R/docvars.R#L151 leads to following warning:
Warning message:
'as.data.frame.dfm' is deprecated.
Use 'convert(x, to "data.frame")' instead.
See help("Deprecated")
Reproducible code
library(quanteda)
corpus.a <- corpus(data_char_ukimmig2010)
docvars(corpus.a) <- dfm_lookup(dfm(corpus.a), dictionary(list(keyword = 'the')))
System information
Additional info
Oh and I just see that there is a missing = in the warning message. It should be to = "data.frame".
Describe the bug
data.frame()in https://github.com/quanteda/quanteda/blob/master/R/docvars.R#L151 leads to following warning:Reproducible code
System information
Additional info
Oh and I just see that there is a missing
=in the warning message. It should beto = "data.frame".