returnQuanteda: returnQuanteda

View source: R/utils.R

returnQuantedaR Documentation

returnQuanteda

Description

return quanteda object

Usage

returnQuanteda(
  ret,
  quantedaArgs,
  numWords,
  ngram,
  filterWords,
  additionalRemove,
  tfidf,
  collapse
)

Arguments

ret

biotext object

quantedaArgs

args to passed to tokens function

numWords

number of words

ngram

tokens_ngrams

filterWords

filtered words

additionalRemove

user-specified filter words

tfidf

use dfm_tfidf or not

collapse

collapse sentences

Details

simple function to generate dfm and export to wc* functions. It did not utilize full functionality of quanteda, and will add better support.

Value

biotext object after filtering using quanteda


noriakis/wcGeneSummary documentation built on May 31, 2024, 4:42 p.m.