Description Usage Arguments Value Author(s)
View source: R/clean_windows.R
Extract windows of words around a regex pattern.
1 | clean_windows(text, pattern, before = 3, after = 3)
|
text |
Character string. String from which the windows should be extracted. |
pattern |
Character string. Regex pattern around which the adjacent pattern has to be detected within the window. |
before |
Integer. Number of words to extract before the pattern. |
after |
Integer. Number of words to extract after the pattern. |
A list of windows around each occurrences of the focal pattern.
Nicolas Mangin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.