prettyalpha | R Documentation |
Results from psych::alpha()
get messed up when alpha()
is called within a for
loop within an R Markdown document with the chunk option results = "asis"
.
This function is an alternative to alpha()
that can print out a pretty output in such situations.
prettyalpha(alphaobj, dp = 2, align = "c", ...)
alphaobj |
Summary object from executing psych::alpha(). |
dp |
Defaults to 3. Number of decimal points for all numeric values. |
align |
Defaults to "c", which stands for centered. Adjusts the alignment of text within table cells. Works the same way as |
... |
Additional arguments passed onto |
myalpha <- alpha(HolzingerSwineford1939[,7:15])
prettyalpha(myalpha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.