find_citing: Identify Potentially Citing Works

Description Usage Arguments Details Value Examples

View source: R/find_citing.R

Description

find_citing identifies those texts within a corpus that potentially cite to a collection of cited works

Usage

1
find_citing(corpus, df, near, max_distance = 250, verbose = TRUE)

Arguments

corpus

A dataframe representing a corpus of downloaded texts generated by build_corpus.

df

A dataframe representing downloaded texts (the "cited works") whose citation histories are sought; see details.

near

An optional regex pattern that, if specified, must be near to a potential citation.

max_distance

The maximum number of words between the near pattern and the potential citation; the default value is 250.

verbose

Should the function provide information about its progress?

Details

The ‘find_citing' function casts a broad net for citing works, returning all works that include the cited work’s author's last name that were published in or after the cited work's year of publication.

Value

A dataframe

Examples

1
2
3
4
5
rush1794 <- yf_corpus %>% 
    filter(id = "101283166.nlm.nih.gov")

mentions_rush <- yf_corpus %>% 
    find_citing(rush1794)

mariolaespinosa/historicalnetworks documentation built on Dec. 9, 2017, 2:04 p.m.