text2bigram: convert a document (or doc filepath) to a df of bigrams or...

Description Usage Arguments Value Examples

Description

convert a document (or doc filepath) to a df of bigrams or bigram counts

Usage

1
2
3
text2bigram(doc, is_path = FALSE, stops = NULL, lower = TRUE,
  toss_punct = TRUE, toss_num = TRUE, return_counts = TRUE,
  quiet = FALSE)

Arguments

doc
is_path
stops
lower
toss_punct
toss_num
return_counts
quiet

Value

a data frame with columns for bigram, w1, w2, and count (or just the bigrams and document location indices if 'return_counts=FALSE')

Examples

1
text2bigram(doc="INDUSTRIAL SOCIETY AND ITS FUTURE  Introduction  1. The Industrial Revolution and its consequences have been a disaster for the human race.")

lefft/lefftpack documentation built on May 8, 2019, 1:13 p.m.