make_bold: Make Entries in Data Frames Bold for Markdown Table

Description Usage Arguments Value Examples

Description

Make Entries in Data Frames Bold for Markdown Table

Usage

1

Arguments

data.frame

A data frame. Numeric entries will be made bold.

cut

The cutoff, numeric. (Absolute) values that are larger than cur will be transformed.

Value

The same data frame, but with entries formatted to be bold

Examples

1
2
3
4
5
6
7
library(psych)
# from psych::fa example:
Thurstone.33 <- as.matrix(Thurstone.33)
mle3 <- fa(Thurstone.33,3 ,rotate="none",fm="mle")
fs <- psych::fa.sort(mle3)
loadings <- round(as.data.frame(fs$loadings[1:nrow(fs$loadings), 1:ncol(fs$loadings)]), 2)
make_bold(loadings)

kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.