Description Usage Arguments Value See Also Examples
Produces a concordance of a regular expression and returns a data frame.
1 2 |
text |
The text to search in, as either a character vector or a list of character vectors. |
pattern |
The Perl-compartible regular expression to search for. |
ignore_case |
If |
locations |
If |
extra_context |
If positive, specifies the number of additional lines around the lines with matches to return. Useful if not enough context is given in the lines with matches. |
shorten |
If positive, truncates the preceding and following contexts to the number of characters specified. Useful if too much context is given in the lines with matches, for example, in texts with (very) long paragraphs. |
A data frame.
Stefan Th. Gries' function exact.matches().
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.