clean.text: Clean text across several dimensions

Description Usage Arguments Value

Description

A function to perform basic text cleaning. It is primarily a convenience function, wrapping up some very commonly used cleaning tasks. It automatically lowers the text.

Usage

1
2
clean.text(text.clean, punct = T, numbs = T, stopz = T, URL = T,
  RT = T)

Arguments

text.clean

character vector

punct

logical, indicating whether to remove punctuation

numbs

logical, indicating whether to remove numbers

stopz

logical, indicating whether to remove stop words (from the tm package)

URL

logical, indicating whether to remove URLS

RT

logical, indicating whether to remove RT sign from the start of each entry

Value

vector with cleaned text


bvidgen/tc documentation built on May 9, 2019, 2:21 a.m.