clean_text: Clean Text

Description Usage Arguments Value Examples

View source: R/cleaning.R

Description

performs basic text cleaning on a single line of text by converting all text to lowercase and removing all punctuation and removing stopwords using the stopwords selection maintained in the tm package

Usage

1
clean_text(text, stopwords = TRUE)

Arguments

text

a line of text

stopwords

logical - should stopwords be removed

Value

a cleaned line of text

Examples

1
clean_text('This is a basic line. It contains UNCLEANED text.')

duncankmckinnon/ezRnlp documentation built on Aug. 6, 2020, 1:28 a.m.