texcerpt: A Text Excerpting Function

Description Usage Arguments Examples

View source: R/text-functions.R

Description

This function extracts words and their surrounding text. Note that this only words with individual words (or multiple individual words).

Usage

1
texcerpt(text, words, n)

Arguments

text

Character string to search.

words

Character vector containing key search words.

n

Return +/- n words around key search words.

Examples

1
texcerpt(example, words = c("data", "statistic"), n = 10)

mdilorenzo/aidtools documentation built on May 22, 2019, 3:37 p.m.