Description Usage Arguments Value Examples
extract claim information from data returned using
get_item
.
1 | extract_claims(items, claims)
|
items |
a list of one or more Wikidata items returned with
|
claims |
a vector of claims (in the form "P321", "P12") to look for and extract. |
a list containing one sub-list for each entry in items
,
and (below that) the found data for each claim. In the event a claim
cannot be found for an item, an NA
will be returned
instead.
1 2 3 4 | # Get item data
adams_data <- get_item("42")
# Get claim data
claims <- extract_claims(adams_data, "P31")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.