View source: R/widget-has-interest.R
has_interest | R Documentation |
Find entities with a given interest(s)
has_interest(
...,
include_children = FALSE,
include_former = FALSE,
comment = NULL
)
... |
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 |
If no interests are entered, widget will search for entities with any interest code.
A definition of type entity_id
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.