Description Usage Arguments Details Value See Also
View source: R/self_made_topics.R
Calculate score of a self-chosen topic for each abstract to identify abstracts possibly corresponding to the topic of interest.
1 2 3 4 5 6 7 8 9 10 |
df |
Data frame containing abstracts. |
keywords |
Character vector. Vector containing keywords. The score is
calculated based on these keywords. How much weight a keyword in |
case |
Boolean. If |
col.score |
String. Name of |
col.indicate |
String. Optional. Name of indicating column. If a string
is provided, an extra column is added to |
threshold |
Integer. Optional. Threshold to decide if abstract
corresponds to topic of interest. If |
discard |
Boolean. If |
col.abstract |
Symbol. Column containing abstracts. |
Calculate score of a self-chosen topic for each abstract to identify
abstracts possibly corresponding to the topic of interest.
This score is added to the data frame as an additional
column, usually called topic_score
, containing the calculated topic score.
If there is more than one topic of interest, the column topic_score
should
be appropriately renamed.
To decide which abstracts are considered to correspond to the topic of interest,
a threshold
can be set via the threshold
argument. Furthermore, an additional
column can be added, verbally indicating if the abstract corresponds to the
topic.
Choosing the right threshold can be facilitated using plot_score_topic()
.
Data frame with calculated topic scores.
If discard = FALSE
, adds extra columns
to the original data frame with the calculated topic scores.
If discard = TRUE
, only abstracts corresponding to
the topic of interest are kept.
assign_topic()
, plot_score_topic()
Other score functions:
assign_topic()
,
calculate_score_animals()
,
calculate_score_biomarker()
,
calculate_score_patients()
,
plot_score_animals()
,
plot_score_biomarker()
,
plot_score_patients()
,
plot_score_topic()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.