def_tab | R Documentation |
def_tab produces a text with a label for a table or figure
def_tab(label_name = "", label_text = "")
label_name |
Name of label. Default ” |
label_text |
Text to which label is attached. Default ” |
An example of use:
Create a table with label mylabel
xtable(uf,caption=def_tab('mylabel','mycaption'))
and refer to it in a knitr
text chunk with
ref_tab
## Not run:
# generate a reference to the table with label lbltabl1
def_tab('lbltab1',cap_tab1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.