clean_text: Clean texts retrieved from WebServices

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

clean_text removes HTML code, brackets and their contents as well as line breaks from texts.

Usage

1
clean_text(text, keep_round_brackets = T)

Arguments

text

a character vector.

keep_round_brackets

if TRUE, round brackets and their contents are not deleted.

Value

A character vector of same length as text.

Examples

1
2
3
4
5
6
## Not run: 
# Get clean version of transcripts
get_glimpse(table = "Transcript", rows = 1000, Language = "DE") %>%
   mutate(Text2 = clean_text(Text))

## End(Not run)

swissparl documentation built on April 17, 2020, 1:09 a.m.