indicate_term {miRetrieve} | R Documentation |
Indicate if a term is contained in abstracts
Description
Indicate if a term is contained in abstracts.
Usage
indicate_term(
df,
term,
threshold = 1,
case = FALSE,
discard = FALSE,
col.abstract = Abstract
)
Arguments
df |
Data frame containing abstracts. |
term |
Character vector. Vector containing terms to indicate. |
threshold |
Integer. Sets how often a term must be in an abstract to be considered "present". |
case |
Boolean. If |
discard |
Boolean. If |
col.abstract |
Symbol. Column containing abstracts. |
Details
Indicate if a term is contained in an abstract. Terms provided can either
be case sensitive or insensitive. Per term, a new column is added to the data
frame indicating if the term is present in an abstract. Furthermore, if a term
is considered "present" in an abstract can be regulated via the threshold
argument. threshold
determines how often a term must be in an abstract
to be considered "present".
Value
Data frame. If discard = FALSE
, the original data frame with additional
columns per term is returned. If discard = TRUE
, only abstracts containing the
terms in term
are returned.
See Also
Other indicate functions:
indicate_mir()