Learn R Programming

sumup (version 1.0.1)

append_stopwords: Append Stopwords

Description

This function is used to append additional stopwords to an existing list.

Usage

append_stopwords(data_stopwords, stopwords_to_append)

Value

Returns a character vector of unique stopwords after appending the specified stopwords and additional stopwords from the stopwords package.

Arguments

data_stopwords

A character vector containing the initial set of stopwords to which more stopwords can be appended.

stopwords_to_append

A character vector containing additional stopwords to be appended to the existing data_stopwords vector.

Details

The append_stopwords function takes an existing list of stopwords (data_stopwords) and appends a new set of stopwords (stopwords_to_append) to it. Additionally, stopwords from the stopwords package (using the "dutch" language option) are also appended to the list. The final list is then returned with duplicate stopwords removed by calling unique().