powered by
applyDictionary(x, dictionary, ...)# S3 method for tokens applyDictionary(x, ...)# S3 method for tokenizedTexts applyDictionary(x, ...)# S3 method for dfm applyDictionary(x, ...)
# S3 method for tokens applyDictionary(x, ...)
# S3 method for tokenizedTexts applyDictionary(x, ...)
# S3 method for dfm applyDictionary(x, ...)
x
TRUE
applyDictionary.dfm
dfm_lookup
toks <- tokens(data_corpus_inaugural) head(kwic(toks, "united states")) dict <- dictionary(list(country = "united states")) toks2 <- applyDictionary(toks, dict, valuetype = "fixed") toks2
Run the code above in your browser using DataLab