def_tab: def_tab

def_tabR Documentation

def_tab

Description

def_tab produces a text with a label for a table or figure

Usage

def_tab(label_name = "", label_text = "")

Arguments

label_name

Name of label. Default ”

label_text

Text to which label is attached. Default ”

details

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

See Also

ref_tab

Examples

## Not run: 
# generate a reference to the table with label lbltabl1
def_tab('lbltab1',cap_tab1)

## End(Not run)

HanOostdijk/HOQCutil documentation built on July 28, 2023, 5:56 p.m.