getWikiInf | R Documentation |
Create a data.frame with Q's and descriptions of a vector of names.
getWikiInf(names, number = 1, language = "en")
names |
A vector consisting of one or more Wikidata's entry (i.e., topic or person). |
number |
Take the number occurrence in case there are several equal names in Wikidata. |
language |
The language of the Wikipedia page version. This should consist of an ISO language code (default = "en"). |
A data frame with name, Q, label and description of the names.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## Obtaining information in English Wikidata
names <- c("William Shakespeare", "Pedro Almodovar")
information <- getWikiInf(names)
## Obtaining information in Spanish Wikidata
## Not run:
informacion <- getWikiInf(names, language="es")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.