Description Usage Arguments Note Examples
This function matches a vector of break point strings with lines from a larger text and returns the line/index numbers of the matched strings in the larger text.
1 | get_breaks(text, breaks)
|
text |
Character vector containing all the lines in a given text |
breaks |
Lines to be matched in the text |
The breaks argument can be fragments of the lines that are to be matched and indexed in the larger text argument.
1 2 3 | breakpoints <- c("Shall we sit here?", "“No, not now,”
said the girl. “Not here, I can’t.”")
get_breaks(text = gardenParty, breaks = breakpoints)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.