A function to extract the edges from a parquet database containing the nodes
Source:R/pro_snowball_extract_edges.R
pro_snowball_extract_edges.RdA function to extract the edges from a parquet database containing the nodes
Usage
pro_snowball_extract_edges(
nodes = NULL,
output = tempfile(fileext = ".snowball"),
verbose = FALSE
)Value
A list containing 2 elements:
nodes: dataframe with publication records. The last column
oa_inputindicates whether the work was one of the inputidentifier(s).edges: publication link dataframe of 2 columns
from, tosuch that a rowA, Bmeans A -> B means A cites B. In bibliometrics, the "citation action" comes from A to B.
Examples
if (FALSE) { # \dontrun{
snowball_docs <- pro_snowball(
identifier = c("W2741809807", "W2755950973"),
citing_params = list(from_publication_date = "2022-01-01"),
cited_by_params = list(),
verbose = TRUE
)
# Identical to above, but searches using paper DOIs
snowball_docs_doi <- oa_snowball(
doi = c("10.1016/j.joi.2017.08.007", "10.7717/peerj.4375"),
citing_params = list(from_publication_date = "2022-01-01"),
cited_by_params = list(),
verbose = TRUE
)
} # }