make.html.cells: HTML report helper

Description Usage Arguments Value Author(s) Examples

View source: R/metaseqr.util.R

Description

Returns a character matrix with html formatted table cells. Essentially, it converts the input data to text and places them in a <td></td> tag set. Internal use.

Usage

1
    make.html.cells(mat, type = "numeric", digits = 3)

Arguments

mat

the data matrix (numeric or character)

type

the type of data in the matrix ("numeric" or "character")

digits

the number of digits on the right of the decimal points to pass to formatC. It has meaning when type="numeric".

Value

A character matrix with html formatted cells.

Author(s)

Panagiotis Moulos

Examples

1
2
3
4
data.matrix <- round(1000*matrix(runif(400),100,4))
rownames(data.matrix) <- paste("gene_",1:100,sep="")
colnames(data.matrix) <- c("C1","C2","T1","T2")
the.cells <- make.html.cells(data.matrix)

metaseqR documentation built on Nov. 8, 2020, 5:57 p.m.