nametoWikiFrame | R Documentation |
Convert names into a Wikipedia's iframe
nametoWikiFrame(name, language = "en")
name |
A vector consisting of one or more Wikipedia'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"). |
This function adds the Wikipedia's iframe to a entry or name, i.e., "Max Weber" converts into "<iframe src=\"https://es.m.wikipedia.org/wiki/Max_Weber\" width=\"100...". It also manages different the languages of Wikipedia through the abbreviated two-letter language parameter, i.e., "en" = "english".
A character vector of Wikipedia's iframes.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## When extracting a single item;
nametoWikiFrame("Computer", language = "en")
## When extracting two objetcs;
A <- c("Computer", "Operating system")
nametoWikiFrame(A)
## Same when three or more items;
B <- c("Socrates", "Plato", "Aristotle")
nametoWikiFrame(B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.