repr_*.matrix/data.frame | R Documentation |
HTML, LaTeX, and Markdown representations of Matrix-like objects
## S3 method for class 'matrix'
repr_html(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
## S3 method for class 'data.frame'
repr_html(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
## S3 method for class 'matrix'
repr_latex(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols"),
colspec = getOption("repr.matrix.latex.colspec")
)
## S3 method for class 'data.frame'
repr_latex(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols"),
colspec = getOption("repr.matrix.latex.colspec")
)
## S3 method for class 'matrix'
repr_markdown(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
## S3 method for class 'data.frame'
repr_markdown(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
## S3 method for class 'matrix'
repr_text(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
## S3 method for class 'data.frame'
repr_text(
obj,
...,
rows = getOption("repr.matrix.max.rows"),
cols = getOption("repr.matrix.max.cols")
)
obj |
The matrix or data.frame to create a representation for |
... |
ignored |
rows |
The maximum number of rows displayed. The default is given by the option |
cols |
The maximum number of columns displayed. The default is given by the option |
colspec |
The colspec for the LaTeX table. The default is given by the option |
repr-options for repr.matrix.latex.colspec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.