tw_get_field {tidywikidatar} | R Documentation |
Gets a field such a label or description from a dataframe typically generated with tw_get()
Description
Gets a field such a label or description from a dataframe typically generated with tw_get()
Usage
tw_get_field(df, field, id, language = tidywikidatar::tw_get_language())
Arguments
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 |
Value
A character vector of the same length, and with data in the same order, as id
.
Examples
tw_get("Q180099") %>%
tw_get_field(field = "label", id = "Q180099")
[Package tidywikidatar version 0.5.9 Index]