bag.o.words: Bag of Words

Description Usage Arguments Value Examples

Description

bag.o.words - Reduces a text column to a bag of words.

breaker - Reduces a text column to a bag of words and qdap recognized end marks.

word.split - Reduces a text column to a list of vectors of bag of words and qdap recognized end marks (i.e. ".", "!", "?", "*", "-").

Usage

1
2
3
4
5
  bag.o.words(text.var, apostrophe.remove = FALSE, ...)

  breaker(text.var)

  word.split(text.var)

Arguments

text.var

The text variable.

apostrophe.remove

logical. If TRUE removes apostrophe's from the output.

...

further arguments passed to strip function.

Value

Returns a vector of striped words.

breaker - returns a vector of striped words and qdap recognized endmarks (i.e. ".", "!", "?", "*", "-").

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.