make_ref_links: Convert links in a table column to reference links

Description Usage Arguments Details Value Author(s)

Description

Convert links in a table column to reference links

Usage

1
make_ref_links(data, links = 1, format = c("markdown", "html"))

Arguments

data

A data.frame or an object that can be coerced to one.

links

Numerical vector of column indices indicating columns that contain links in need of conversion.

format

Format used to specify links in the input.

Details

It is assumed that each entry consists either of a single link or doesn't contain any link. If a link is identified the resulting reference link will replace the entire entry. Entries without links will be left unchanged.

Regardles of the input format of the links, the output will always have markdown reference links.

Value

A data.frame with links in the indicated columns replaced with reference links.

Author(s)

Peter Humburg


humburg/reportmd documentation built on May 17, 2019, 9:13 p.m.