preprocess.removeStopwords: Remove Words From Text

View source: R/preprocess_pipeline.R

preprocess.removeStopwordsR Documentation

Remove Words From Text

Description

This function preprocesses a character vector by removing the words defined in stopwords. and reports the mean number of characters before and after preprocessing.

Usage

preprocess.removeStopwords(text, stopwords)

Arguments

text

A character vector that will be preprocessed.

stopwords

A character vector containing words and phrases to be removed.

Value

A preprocessed character vector.

Examples

## Not run: 
stopwords <- c("in", "and", "per se")
preprocess.removeStopwords(text, stopwords)

## End(Not run)


Kudusch/ktools documentation built on Oct. 30, 2022, 10:13 p.m.