ref_tab: ref_tab

ref_tabR Documentation

ref_tab

Description

ref_tab produces a reference to a label of a table or figure

Usage

ref_tab(label_name, table = T, add_page = T, prefix = "in", def_text = "")

Arguments

label_name

Name of label

table

Boolean to indicate if the label is for table (T) or figure(F)

add_page

Boolean to indicate if the reference should include the page

prefix

Text to include before the reference

def_text

Text to include when the output is not Latex

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

def_tab

Examples

## Not run: 
# generate a reference to the table with label lbltabl1
ref_tab("lbltab1",table=T,prefix="")

## End(Not run)

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