getWikiData | R Documentation |
Create a data.frame with Wikidata of a vector of names.
getWikiData(names, language = "en", csv = NULL)
names |
A vector consisting of one or more Wikidata's entry (i.e., topic or person). |
language |
The language of the Wikipedia page version. This should consist of an ISO language code (default = "en"). |
csv |
A file name to save the results, in which case the only return is a message with the name of the saved file. |
A data frame with personal information of the names or a csv file with the information separated by semicolons.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## Obtaining information in English Wikidata
## Not run:
names <- c("William Shakespeare", "Pedro Almodovar")
info <- getWikiData(names)
## Obtaining information in Spanish Wikidata
d <- getWikiData(names, language="es")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.