Learn R Programming

metaseqR (version 1.12.2)

make.html.cells: HTML report helper

Description

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

Usage

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab