clean_text: Clean text

Description Usage Arguments Value Examples

View source: R/clean_text.R

Description

This function coverts text to lowercase, removes non-alpha numeric characters, and vectorizes text by splitting on one or more spaces.

Usage

1

Arguments

x

a string

Value

a vector of strings

Examples

1
2
clean_text("THIS is an example sentence.   With another 1 sentence!!")
## [1] "this" "is" "an" "example" "sentence" "with" "another" "1" "sentence"

cookm346/textfeats documentation built on April 24, 2020, 9:50 p.m.