Learn R Programming

MetaNLP (version 0.1.4)

delete_stop_words: Delete stop words

Description

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.

Usage

delete_stop_words(object, ...)

# S4 method for MetaNLP delete_stop_words(object, ...)

Value

An object of class MetaNLP.

Arguments

object

A MetaNLP object, whose data frame is to be modified.

...

Language of the stop words. Defaults to "english".

Details

This function allows to delete stop words from different languages. Supported languages are english, french, german, russian and spanish. Language names are case sensitive.

Examples

Run this code
path <- system.file("extdata", "test_data.csv", package = "MetaNLP", mustWork = TRUE)
obj <- MetaNLP(path)
obj <- delete_stop_words(obj, "english")

Run the code above in your browser using DataLab