% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/historiograph.R
\name{local_citations}
\alias{local_citations}
\title{Compute local citation scores}
\usage{
local_citations(data)
}
\arguments{
\item{data}{A data frame with \code{id} and \code{references} (list-column).
Optionally \code{year}, \code{title}, \code{journal}, \code{doi}, \code{cited_by_count}.}
}
\value{
A data frame with columns:
\describe{
\item{\code{id}}{Document identifier.}
\item{\code{lcs}}{Local Citation Score: times cited within the dataset.}
\item{\code{gcs}}{Global Citation Score: \code{cited_by_count} if available.}
}
Plus any metadata columns present in the input (\code{title}, \code{year},
\code{journal}, \code{doi}).
}
\description{
Counts how many times each document is cited by other documents
within the dataset.
}
\examples{
data(biblio_data)
local_citations(biblio_data)
}
