link_generator: Link generator for See GEM interactive report

Description Usage Arguments Value Examples

Description

Takes a base url and a column from a data frame to generate a vector of URLs. You must use html format to specify special characters and spaces. Used in See_GEM_formatter function to format specified colums.

Usage

1
link_generator(base_url, ID, split_on = ",", link_name = NA)

Arguments

base_url

The consistent base URL

ID

The column ID to build the unique part of the URL

split_on

What delimiter to split the field on? Defaults to comma.

link_name

What to use for the link name? Defaults to using the row value of the column

Value

None

Examples

1
link_generator('https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=', 'rs1800728')

davemcg/see_gem documentation built on May 15, 2019, 2:50 a.m.