Description Usage Arguments Details Value Author(s)
This function identifies column pairs from a data.frame that differ only in a string suffix (default: .url). The column with the suffix is used to add http href tags to the other column and is then removed.
1 2 |
df |
data.frame, must contain both target and url columns |
pattern |
character, the suffix linking target and url columns. Default=c('.url') |
swap.colnames |
list, containing alternative names for CMAPResults columns. |
To annotate columns with links to other urls, the urls must be included in the data.frame in a separate column matching the target column name but carrying the additional suffix in the column name. For example, to add links to the 'id' column, an additional id.url column can be used. Multiple columns can be processed simultaneously, if each of them has a matching url column.
Data frame with href html tags in the target column(s)
Thomas Sandmann
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.