| iv_format | R Documentation |
iv_format() is an S3 generic intended as a developer tool for making a
custom class print nicely when stored in an iv. The default method simply
calls format(), and in many cases this is enough for most classes.
However, if your class automatically adds justification or padding when
formatting a single vector, you might need to implement an iv_format()
method to avoid that padding, since it often looks strange when nested
in an interval vector.
iv_format(x)
x |
A vector to format. This will be called on the |
A character vector, likely generated through a call to format().
# Numeric values get padding automatically through `format()` x <- c(1, 100) format(x) # This ends up looking strange in an iv, so an `iv_format()` method for # numeric values is implemented which turns off that padding iv_format(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.