grab_chunk: Grabs a chunk based upon one or two goalpoasts in the text

Description Usage Arguments Value

Description

This is a convienence function that takes a bunch of character strings and returns a subset of them corresponding to a start_text and stop_text term supplied by the user.

Usage

1
2
grab_chunk(full_text, start_text = NULL, stop_text = NULL,
  verbose = FALSE, ...)

Arguments

full_text

A character array of text to search through.

start_text

A word to mark the beginning of the chunk to be returned. If this is NULL then the returned text will start at the beginning of full_text.

stop_text

A word to mark the end of the chunk to be returned. If this is NULL then the returned text will go to the end.

verbose

Prints indices of start and stop for debugging (default is FALSE )

...

Ignored

Value

Zero or more lines of text between start_text and stop_text.


dyerlab/footprints documentation built on May 15, 2019, 7:21 p.m.