as_mdtable | R Documentation |
Bundles a data frame with its R markdown reference and caption and file name for saving on the disc.
as_mdtable(x, ...)
## S3 method for class 'data.frame'
as_mdtable(x, label, ref_name, caption, ...)
## S3 method for class 'matrix'
as_mdtable(x, label, ref_name, caption, ...)
x |
a data frame or tibble. |
... |
extra arguments. In case of matrices, extra arguments passed to
|
label |
the final file name. |
ref_name |
name of the reference to the table, used mainly in markdown documents. |
caption |
text to be presented in the table caption. |
Technically, a data frame with label, ref_name
and caption attributes.
The mdtable
class inherits from data frame most of its methods.
ref_name: needs to be a valid markdown/bookdown reference name. By
default, spaces, slashes and underscores are silently turned into '-'.
An object of class mdtable
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.