extract_para: Extract a paragraph of text

Description Usage Arguments Value

View source: R/utils.R

Description

Return the nth paragraph of a section of text Useful for extracting information from wikipedia or other wikimarkup text

Usage

1
extract_para(text, para = 1, templ = NULL)

Arguments

text

the input text as a string

para

number indicating which paragraph(s) to return (default=1)

templ

an optional string specifying a mediawikitemplate within which to restrict the search restrict search

Value

the nth paragraph of the input text.


WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.