stopwords() - but there is a new package for this (stopwords) that includes all of tm's functionality and more. Furthermore, the list is more complete than the tm list. It uses the same function name so all you need to do is change tm::stopwords("en") to stopwords::stopwords("english").
weightTfIdf() - the quanteda equivalent is dfm_tfidf(x, base = 2) (if you insist on using base 2 as tm does...)
You use tm for just two functions:
stopwords()
- but there is a new package for this (stopwords) that includes all of tm's functionality and more. Furthermore, the list is more complete than the tm list. It uses the same function name so all you need to do is changetm::stopwords("en")
tostopwords::stopwords("english")
.weightTfIdf()
- the quanteda equivalent isdfm_tfidf(x, base = 2)
(if you insist on using base 2 as tm does...)