indicate_term: Indicate if a term is contained in abstracts

Description Usage Arguments Details Value See Also

View source: R/detect_single_term.R

Description

Indicate if a term is contained in abstracts.

Usage

1
2
3
4
5
6
7
8
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 case = TRUE, strings contained in term are case sensitive. If case = FALSE, strings contained in term are case insensitive.

discard

Boolean. If discard = TRUE, only abstracts containing the terms in term are kept.

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

indicate_mir()

Other indicate functions: indicate_mir()


JulFriedrich/miRetrieve documentation built on Sept. 20, 2021, 11:37 p.m.