View source: R/coupling_descriptive.R
| descriptive_terms | R Documentation |
The second contribution of \insertCiteliu2017biblionetwork: given two
documents, it extracts the words of the titles of the references of one
(to) that best indicate in what respect it is related to the other
(from). It complements coupling_descriptive(): the weight says how
much two documents are related, the terms say why.
descriptive_terms(
dt,
source,
ref,
title,
from,
to,
n_terms = 10,
stopwords = NULL
)
dt |
A data frame or a |
source |
Character scalar. The column of the citing documents: they are the nodes of the coupling network. |
ref |
Character scalar. The column of the cited references. |
title |
Character scalar. The column with the title of the cited reference (one title per reference). |
from, to |
Identifiers of two documents (values of |
n_terms |
Number of terms to return. |
stopwords |
Character vector of words to ignore in the titles
( |
The descriptive strength of a term t is (Eq. 6 of the paper)
D(t) = \frac{\sum_{r' \in R_{to},\, t \in T(r')} \max_{r \in R_{from}} \mathrm{Sim}(r, r')}{|R_{to}|}
with \mathrm{Sim} the reference similarity of coupling_descriptive().
The n_terms terms with the highest strength are returned (the paper
suggests about 10, the length of a title). The relation is not symmetric:
swap from and to to explain the relation the other way.
A data.table with the term and its strength, in decreasing order.
A document cites references for each of its issues. The references of
to that have a close match among the references of from are the
issues the two documents have in common, and the words of their titles
name these issues. A word is a good descriptor if it appears in many
references of to, and if these references are close to references of
from.
Other coupling measures:
biblio_coupling(),
coupling_angle(),
coupling_descriptive(),
coupling_jaccard(),
coupling_similarity(),
coupling_strength(),
coupling_vladutz()
library(biblionetwork)
toy <- data.frame(
doc = c("a", "a", "b", "b"),
ref = c("r1", "r2", "r1", "r3"),
title = c("inflation expectations", "oil supply shocks",
"inflation expectations", "supply shocks prices")
)
descriptive_terms(toy, "doc", "ref", "title", from = "a", to = "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.