Learn R Programming

sumup (version 1.0.1)

default_stopwords: Load Stopwords

Description

Load stopwords from a file

Usage

default_stopwords(stopwords_file)

Value

Returns a character vector of stopwords read from the specified file.

Arguments

stopwords_file

A string representing the path to a file containing a list of stopwords, with one word per line. This file is expected to have tab-separated values with the stopwords in the first column.

Details

The default_stopwords function loads a list of stopwords from a specified file, with each stopword being listed on a new line. It returns a character vector of these stopwords.