powered by
Convert coefficients into standardized strings.
coeftostring(x, lead.zero = FALSE, digits = 2)
A numeric object, for example a coefficient resulting from a regression model.
If the number starts with "0" or "-0": should the zero be retained or removed? If true, the leading zero is kept.
The number of decimal places to be used.
This function converts numbers into strings and standardizes them according to some simple rules. The function is used by the texreg function.
texreg-package texreg
# NOT RUN { coeftostring(-0.345, lead.zero = FALSE) # this should give "-.34" # }
Run the code above in your browser using DataLab