headerKable: Create a nicer kable table.

Description Usage Arguments Value

View source: R/RNASeqUtilities.R

Description

Creates an html kable table with additional parameters, including a multi-level column label if desired. This is designed to be used on a table created by countSampleSizes. If 'levels' or 'labels' are NULL then no header will be produced.

Usage

1
2
headerKable(tabley, labels = NULL, levels = NULL, title = NULL,
  align = "left", escapeMe = FALSE, digitts = 3)

Arguments

tabley

data.frame of sample sizes. Each column is a level and each row is a level of the reference factor. The first column of the tabley will be total and the remaining columns will be the levels.

labels

vector of factor labels which will be the top level header.

levels

vector of number of levels for each factor in 'labels'

title

string for caption of table

align

parameter for 'position' argument for kable_styling. default: left

escapeMe

escape parameter for kable which is logical to escape special symbols

digitts

set number of significant digits to be displayed

Value

kable table


carlmurie/RNASeqUtilities documentation built on Sept. 1, 2019, 11:54 p.m.