extract_para {WikidataR}R Documentation

Extract a paragraph of text

Description

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

Usage

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.


[Package WikidataR version 2.3.3 Index]