urltoFrame: Convert an URL link to an HTML iframe.

View source: R/wikiTools.R

urltoFrameR Documentation

Convert an URL link to an HTML iframe.

Description

Convert an URL link to an HTML iframe.

Usage

urltoFrame(url)

Arguments

url

Character vector of URLs.

Details

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>".

Value

A character vector of HTML iframe for the given urls.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

## 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)

wikiTools documentation built on March 24, 2022, 9:05 a.m.