extract_para function

Extract a paragraph of text

Extract a paragraph of text

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

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

Returns

the nth paragraph of the input text.

  • Maintainer: Thomas Shafee
  • License: MIT + file LICENSE
  • Last published: 2021-11-16