Description Usage Arguments Value
View source: R/detect_sections.R
Given a plain text journal article and a named section header, detects which line is most likely to be the section header. For example, section="methods" will return the line containing a header such as "Materials and Methods".
1 | find_section(section, text)
|
section |
A string of length 1 naming the section to detect; options are introduction, methods, results, discussion, and references. |
text |
A character vector containing the plain text of a journal article where each line represents one paragraph separated by line breaks. |
An integer containing the line number of the text that is most likely the start of the section.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.