tblCap | R Documentation |
Returns a formatted markdown text string for the caption, which includes
the table number. The function relies on options("table_number")
in
order to keep track of the current number. Also increases the
table number BEFORE processing the caption using tblNumIncrement.
tblCap(
caption.text=NULL,
advance.counter=1
)
caption.text |
Text string to be used for caption. If NULL, no caption is returned, but the table counter is advanced. |
advance.counter |
Numeric. Number to be added to the present table number. Default is 1, advancing table count by 1. |
options(table_number=1)
tblCap("My table caption is great.")
# Returns ' **Table 2:** My table caption is great. '
getOption("table_number")
# Returns '2'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.