Description Usage Arguments Details Value Examples

`write_int`

formats a numeric input into an interval to be printed, e.g., in an RMarkdown document.

1 | ```
write_int(x, delim = "(", digits = 2)
``` |

`x` |
A length-2 numeric vector consisting of the endpoints of the interval or an n-row by 2-column matrix of endpoints. |

`delim` |
The bracket delimiters to surround the interval. Must be either a round bracket, square bracket, curly bracket, or angled bracket. |

`digits` |
Number of digits to round to (default to 2). Will keep trailing zeros. |

If a matrix is provided, the values in each row will be used to create a formatted interval.

Returns a character string of the form "(x[1], x[2])" (or supplied bracket delimiter).

1 2 |

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.