tw_get_field | R Documentation |
tw_get()
Gets a field such a label or description from a dataframe typically generated with tw_get()
tw_get_field(df, field, id, language = tidywikidatar::tw_get_language())
df |
A data frame typically generated with |
field |
A character vector of length one. Typically, either "label" or "description". |
id |
A character vector, typically of Wikidata identifiers. The output will be of the same length and in the same order as the identifiers provided with this parameter. |
language |
Defaults to language set with |
A character vector of the same length, and with data in the same order, as id
.
tw_get("Q180099") %>%
tw_get_field(field = "label", id = "Q180099")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.