Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

revwords

Load a set of stopwords


Description

Generates a list of stopwords, consisting of all the terms given by tm::stopwords, plus some extra terms (mainly words that designate numbers).

Usage

revwords()

Value

A vector of stopwords in English.

Note

This is primarily an internal function, but may be useful in other contexts.

Examples

# import some data
file_location <- system.file(
  "extdata",
  "avian_ecology_bibliography.ris",
  package = "revtools")
x <- read_bibliography(file_location)

# construct a document-term matrix
x_dtm <- make_dtm(x$title,
  stop_words = revwords())
# Note that make_dtm calls revwords by default, so this is technically redundant

revtools

Tools to Support Evidence Synthesis

v0.4.1
GPL-3
Authors
Martin J. Westgate [aut, cre]
Initial release
2019-12-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.