has_interest: Interest code widget

View source: R/widget-has-interest.R

has_interestR Documentation

Interest code widget

Description

Find entities with a given interest(s)

Usage

has_interest(
  ...,
  include_children = FALSE,
  include_former = FALSE,
  comment = NULL
)

Arguments

...

Interest code(s)

include_children

If TRUE, will include interest codes in the interest group listed (for example, when searching "health", if TRUE, will include interest codes such as Aging, Nutritional Science, Parkinson's Disease, etc.).

include_former

If TRUE, will include all interest codes, even if they have a stop date. If FALSE (default), will exclude codes with a stop date.

comment

(Optional) Supply one or more search terms to search through the comment fields of the interest area

Details

If no interests are entered, widget will search for entities with any interest code.

Value

A definition of type entity_id

Examples

has_interest(data_science)

## prospects for cancer research can be interest coded with "cancer"
## or with the more general "health"
has_interest(cancer) %or% has_interest(health, comment = "cancer")


tarakc02/discoveryengine documentation built on Sept. 26, 2023, 12:17 a.m.