context: See Terms in Context

Description Usage Arguments Value

Description

Examine regex term selections in the context of n rows before and after.

Usage

1
2
3
context(x, regex, file = "out.html", n.before = 1, n.after = n.before,
  color = "lightgreen", open = TRUE, text.var = TRUE,
  ignore.case = FALSE, ...)

Arguments

x

A data.frame with a text column.

regex

A regular expression that will be highlighted.

file

A file to output the .html output to.

n.before

The number of rows before an occurrence to show.

n.after

The number of rows after an occurrence to show.

color

The highlight color.

open

logical. If TRUE the created .html file will attempt to be opened.

text.var

The name of the text variable. If TRUE split_word tries to detect the text column with words.

ignore.case

logical. If TRUE case sensitivity is ignored.

...

ignored.

Value

Generates an .html file with highlighted terms in context.


trinker/textcode documentation built on June 1, 2019, 12:53 a.m.