context: Context

Description Usage Arguments Examples

Description

Find a substring and return with a buffer of n characters on either side.

Usage

1
2
context(term = ".*", target = NULL, back = 20, forward = 20,
  ignore.case = TRUE, highlight = TRUE)

Arguments

term

A regular expression to search for.

back

The number of characters back to return.

forward

The number of characters forward to return.

ignore.case

Should case be ignored for the search. Default is TRUE.

highligh

Should the returned expression be in CAPS? Default is TRUE.

Examples

1

smmurphy/convenience documentation built on Aug. 26, 2020, 8:46 p.m.