Description Usage Arguments Details Author(s) See Also Examples

Convert coefficients into standardized strings.

1 | ```
coeftostring(x, lead.zero = FALSE, digits = 2)
``` |

`x` |
A numeric object, for example a coefficient resulting from a regression model. |

`lead.zero` |
If the number starts with "0" or "-0": should the zero be retained or removed? If true, the leading zero is kept. |

`digits` |
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.

Philip Leifeld (http://www.philipleifeld.com)

1 | ```
coeftostring(-0.345, lead.zero = FALSE) # this should give "-.34"
``` |

texreg documentation built on May 29, 2017, 7:54 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.