tw_extract_single {tidywikidatar} | R Documentation |
Extract item data from an object of class Wikidata created with WikidataR
Description
This function is mostly used internally and for testing.
Usage
tw_extract_single(w, language = tidywikidatar::tw_get_language())
Arguments
w |
An object of class Wikidata created with |
language |
Defaults to language set with |
Value
A data frame (a tibble) with four columns, such as the one created by tw_get
.
Examples
item <- tryCatch(WikidataR::get_item(id = "Q180099"),
error = function(e) {
as.character(e[[1]])
}
)
tidywikidatar:::tw_extract_single(w = item)
[Package tidywikidatar version 0.5.9 Index]