delete_stop_words | R Documentation |
Usually, stop words do not offer useful information in the classification whether a paper should be included or excluded from a meta-analysis. Thus, such words should not be part of the document-term matrix. This function allows the user to automatically delete stop words.
delete_stop_words(object, ...)
## S4 method for signature 'MetaNLP'
delete_stop_words(object, ...)
object |
A MetaNLP object, whose data frame is to be modified. |
... |
Language of the stop words. Defaults to "english". |
This function allows to delete stop words from different languages. Supported
languages are english
, french
, german
, russian
and
spanish
. Language names are case sensitive.
An object of class MetaNLP
.
path <- system.file("extdata", "test_data.csv", package = "MetaNLP", mustWork = TRUE)
obj <- MetaNLP(path)
obj <- delete_stop_words(obj, "english")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.