maketabs | R Documentation |
Make Quarto Tabs
maketabs(
...,
wide = FALSE,
cwidth = if (wide) "column-page",
initblank = FALSE,
baselabel = NULL,
cap = NULL,
basecap = NULL,
debug = FALSE
)
... |
a series of formulas or a single named list. For formulas the left side is the tab label (if multiple words or other illegal R expressions enclose in backticks) and the right hand side has expressions to evaluate during chunk execution, plus optional |
wide |
set to |
cwidth |
specify a legal |
initblank |
set to |
baselabel |
a one-word character string that provides the base name of |
cap |
applies to the non-formula use of |
basecap |
a single character string providing the base text for captions if |
debug |
set to |
Loops through a series of formulas or elements of a named list and outputs each element into
a separate Quarto
tab. wide
and column
arguments are used to expand the width
of the output outside the usual margins. An initblank
argument
creates a first tab that is empty, or you can specify a formula
~
. This allows one to show nothing
until one of the other tabs is clicked. Multiple commands can be run in one chunk by including multiple right hand terms in a formula. A chunk can be marked for producing raw output by including a term raw
somewhere in the formula's right side. If can be marked for constructing a label and caption by including + caption(caption string, label string)
. The tab number is appended to the label string, and if the label is not provided baselabel
will be used.
nothing is returned; used to render markup
Frank Harrell
X <- list(A=data.frame(x=1:2), B=data.frame(x=1:2, y=11:12))
maketabs(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.