annotationTable: Function to Create an annotationTable

Description Usage Arguments Details Value Author(s) Examples

View source: R/annotationTable.R

Description

This function takes data to be displayed as well as data containing hyperlinks corresponding to displayed data and constructs an object of class annotationTable

Usage

1
annotationTable(displayData, displayCols = NULL, hrefData = NULL)

Arguments

displayData

data frame containing data that is meant to be displayed in a LaTeX table

displayCols

list of named character vectors (of length one) that function as key-value pairs; the names (keys) correspond to columns for which the hyperlinks should be generated whereas the strings (values) indicate what kind of link should be produced based on the corresponding column in the displayData. The values should be one of "EntrezId" or "GOId".

hrefData

data frame containing hyperlink information for the columns of the same name in the displayData data frame

Details

If hrefData is given, the displayCols are not taken into account. If no hrefData is given, the information in displayCols allows to automatically create the hrefData.

Value

object of class 'annotationTable'

Author(s)

Tobias Verbeke

Examples

1
2
3
4
5
## some dummy data
dData <- data.frame(someSymbol = LETTERS[1:5], 
 accessionNumber = c("X83928", "V00540", "U21090", "L38487", "M34057"))
at <- annotationTable(displayData = dData, 
 displayCols = list(accessionNumber = "EntrezId"))

a4Reporting documentation built on Nov. 8, 2020, 7:13 p.m.