ys_table | R Documentation |
The primary use case for this function is for creating TeX tables which can
be included in a report Appendix. See more in details
.
ys_table(spec, fun = NULL, tex = TRUE, widths_ = c(0.75, 1.95, 0.6, 2.15), ...)
spec |
a |
fun |
a function to format a TeX table; if |
tex |
logical; if |
widths_ |
passed to |
... |
additional arguments passed to |
By default, the table code is rendered using fda_table()
; this should be
used in most cases. fda_table()
returns the table in the longtable
environment. This can be included in a report with \input{<file.tex>}
.
At this time, there is no mechanism for generating a caption for tables
generated using fda_table()
; the intended use is to include the table in
an appendix, with caption information given in plain text in the appendix.
The table text generated from fun
.
spec <- ys_help$spec()
tab <- ys_table(spec)
writeLines(text = tab, con = tempfile(fileext=".tex"))
formals(fda_table)$widths
formals(ys_table)$widths_
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.