urltoFrame | R Documentation |
Convert an URL link to an HTML iframe.
urltoFrame(url)
url |
Character vector of URLs. |
This function converts an available URL direction to the corresponding HTML iframe, i.e., "https://es.wikipedia.org/wiki/Socrates" changes into "<a href='https://es.wikipedia.org/wiki/Socrates' target='_blank'>Socrates</a>
".
A character vector of HTML iframe for the given urls.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## When you have a single URL:
urltoFrame("https://es.wikipedia.org/wiki/Socrates")
## It is possible to work with a vector of URL to obtain another vector of html frames:
A <- c("https://es.wikipedia.org/wiki/Socrates",
"https://es.wikipedia.org/wiki/Plato",
"https://es.wikipedia.org/wiki/Aristotle")
urltoHtml (A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.