EVOLUTION-MANAGER
Edit File: get_stopwords.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get a tidy data frame of a single stopword lexicon</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for get_stopwords {tidytext}"><tr><td>get_stopwords {tidytext}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get a tidy data frame of a single stopword lexicon</h2> <h3>Description</h3> <p>Get a specific stop word lexicon via the <span class="pkg">stopwords</span> package's <a href="../../stopwords/html/stopwords.html">stopwords</a> function, in a tidy format with one word per row. </p> <h3>Usage</h3> <pre> get_stopwords(language = "en", source = "snowball") </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>language</code></td> <td> <p>The language of the stopword lexicon specified as a two-letter ISO code, such as <code>"es"</code>, <code>"de"</code>, or <code>"fr"</code>. Default is <code>"en"</code> for English. Use <a href="../../stopwords/html/stopwords_getlanguages.html">stopwords_getlanguages</a> from <span class="pkg">stopwords</span> to see available languages.</p> </td></tr> <tr valign="top"><td><code>source</code></td> <td> <p>The source of the stopword lexicon specified. Default is <code>"snowball"</code>. Use <a href="../../stopwords/html/stopwords_getsources.html">stopwords_getsources</a> from <span class="pkg">stopwords</span> to see available sources.</p> </td></tr> </table> <h3>Value</h3> <p>A tibble with two columns, <code>word</code> and <code>lexicon</code>. The parameter <code>lexicon</code> is "quanteda" in this case. </p> <h3>Examples</h3> <pre> library(dplyr) get_stopwords() get_stopwords(source = "smart") get_stopwords("es", "snowball") get_stopwords("ru", "snowball") </pre> <hr /><div style="text-align: center;">[Package <em>tidytext</em> version 0.3.4 <a href="00Index.html">Index</a>]</div> </body></html>