myKable: Wrapper for kable

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A small wrapper for the knitr kable function to allow automated bolding of row and/or column names. Additional functionality may be added/

Usage

1
myKable(x, row.names = NA, boldRowNames = TRUE, boldColNames = TRUE, ...)

Arguments

x

Table or matrix to be passed to kable

row.names

Logical: should row names be included? Defaults to NULL which includes row names if they are not just numeric in order.

boldRowNames

Logical: should row names be bolded?

boldColNames

Logical: should column names be bolded?

...

Additional arguments to be passed to kable

Details

Currently bolds in markdown format, so needs to be passed through interpreter after running.

Value

A formatted table from kable

Author(s)

Mark Peterson

See Also

kable

Examples

1
2
3
4
5
6
tempTable <- matrix(LETTERS[6:20], nrow = 5)
colnames(tempTable) <- LETTERS[24:26]
row.names(tempTable) <- LETTERS[1:5]
myKable(tempTable)

myKable(tempTable, boldColNames =  FALSE)

rmdHelpers documentation built on May 1, 2019, 7:33 p.m.