sprinkle_caption_number {pixiedust} | R Documentation |
Change the Caption in a Dust Table
Description
The table caption is often used as a brief title, but may also be used to provide a longer statement explaining how to interpret the table results.
Usage
sprinkle_caption_number(x, caption_number, ...)
## Default S3 method:
sprinkle_caption_number(
x,
caption_number = getOption("pixie_caption_number", TRUE),
...
)
## S3 method for class 'dust_list'
sprinkle_caption_number(
x,
caption_number = getOption("pixie_caption_number", TRUE),
...
)
Arguments
x |
An object of class |
caption_number |
|
... |
Additional arguments to pass to other methods. Currently ignored. |
Details
Table numbering makes it possible to reference tables within a document. In some cases, the numbering is not desired. Suppressing numbering may restrict the ability to make reference to the table.
Functional Requirements
Change the
caption_number
attribute of thedust
object.Cast an error if
x
is not adust
object.Cast an error if
caption_number
is not a logical object.Cast an error if
caption_number
has length greater than 1.
Author(s)
Benjamin Nutter