Description Usage Arguments Value Author(s) References Examples
View source: R/generateTable.R
Generate table format in R documentation
1 2 | generateTable(content_dt, alignement_s_1 = NA_character_,
numberRows_b_1 = FALSE, showHeader_b_1 = TRUE)
|
content_dt |
A |
alignement_s_1 |
A single |
numberRows_b_1 |
A single |
showHeader_b_1 |
A single |
A single string
, containing potentially many embedded formatting strings.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to
Writing R extensions
section Lists and Tables
.
1 2 3 4 5 6 7 8 9 10 | library(data.table)
dt <- data.table::data.table(x = runif(3), y = letters[1:3])
generateTable(dt)
# "\tabular{ll}{\n0.975343016441911 \tab a \cr\n
# 0.647014946676791 \tab b \cr\n0.576294980244711 \tab c \cr\n}"
generateTable(dt, numberRows_b_1 = TRUE)
# "\tabular{rll}{\n1 \tab 0.11690619844012 \tab a \cr\n
# 2 \tab 0.467709563905373 \tab b \cr\n3 \tab 0.957075224025175 \tab c \cr\n}"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.