compute.width | R Documentation |
Compute maximum column width left and right of a decimal separator.
compute.width(v, left = TRUE, single.row = FALSE, bracket = ")")
v |
A |
left |
Should the width left of the separator/bracket be calculated? If
|
single.row |
Was the |
bracket |
The separator symbol to match. These can be closing
parentheses (in the case of standard errors when |
This function takes a vector of character
objects with coefficients,
usually a column of a regression table, and computes the maximal width left
or right of the decimal separator or bracket at which the cells are aligned
vertically. This is useful in the context of the texreg
function when the dcolumn
or siunitx
arguments are used for
vertical decimal point alignment.
A number indicating the maximal width left or right of the separator.
Philip Leifeld
texreg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.