get_regex_citations_in_wiki_table: Get Regex citations in wiki table

Description Usage Arguments Details Value Examples

View source: R/WikiHistoRyfunctions.r

Description

This function get a regex of citations type and a wikipedia article table as input and th creation dates e table with each matched ciation in each revision/article from a wiki table

Usage

1
get_regex_citations_in_wiki_table(article_wiki_table, citation_regexp)

Arguments

citation_regexp

citation regular expression

rticle_wiki_table

a wiki table

Details

accessible regular expression

doi_regexp= "10\.\d4,9/[-._;()/:a-z0-9A-Z]+"

isbn_regexp='(?<=(isbn|ISBN)\s?[=:]?\s?)\d1,5-\d1,7-\d1,5-[\dX]'

url_regexp = "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:

tweet_regexp='\\cite tweet.*?\\'

news_regexp='\\cite news.*?\\'

journal_regexp='\\cite journal.*?\\'

web_regexp='\\cite web.*?\\'

article_regexp='\\cite article.*?\\'

report_regexp='\\cite report.*?\\'

court_regexp='\\cite court.*?\\'

press_release_regexp='\\cite press release.*?\\'

book_regexp='\\cite book .*?\\'

pmid_regexp="(?<=(pmid|PMID)\s?[=:]\s?)\d5,9"

ref_regexp='<ref>\\[c|C]ite.*?\\</ref>' # in-text refs!

cite_regexp='\\[c|C]ite.*?\\'

Value

list of wikipedia pages in the input category

Examples

1
2
Zeitgeber_history=get_article_full_history_table("Zeitgeber")
citations_in_wiki_table=get_regex_citations_in_wiki_table(Zeitgeber_history,doi_regexp)

jsobel1/WikiCitationHistoRy documentation built on July 24, 2021, 10:26 p.m.