local_citations: Compute local citation scores

View source: R/historiograph.R

local_citationsR Documentation

Compute local citation scores

Description

Counts how many times each document is cited by other documents within the dataset.

Usage

local_citations(
  data,
  references = "references",
  sep = ";",
  strip_quotes = TRUE,
  id = NULL
)

Arguments

data

A data frame with id and a references column (list-column or delimited string). Optionally year, title, journal, doi, cited_by_count.

references

Character. Name of the column containing cited references. Default "references".

sep

Character. Separator used to split the references column when it is a plain character column. Default ";".

strip_quotes

Logical. If TRUE (default), surrounding quote characters are removed from each reference.

id

Optional. Name of the column to use as the work identifier. If NULL (default), an existing id column is used when present, otherwise row numbers are used.

Value

A data frame with columns:

id

Document identifier.

lcs

Local Citation Score: times cited within the dataset.

gcs

Global Citation Score: cited_by_count if available.

Plus any metadata columns present in the input (title, year, journal, doi).

Examples

data(biblio_data)
local_citations(biblio_data)

bibnets documentation built on June 19, 2026, 1:06 a.m.