
Last chance! 50% off unlimited learning
Sale ends in
Helper function for turning an array into its Markdown representation.
opal.as_md_table(
table,
icons = TRUE,
digits = getOption("digits"),
col.names = colnames(table),
align,
caption = NULL
)
An array, including a matrix or a data.frame.
Turn logicals to icons (requires bootstrap style). Default is TRUE.
The maximum number of digits for numeric columns (passed to round()); it can also be a vector of length ncol(table) to set the number of digits for individual columns.
A character vector of column names to be used in the table
The alignment of columns: a character vector consisting of 'l' (left), 'c' (center) and/or 'r' (right); by default, numeric columns are right-aligned, and other columns are left-aligned; if align = NULL, the default alignment is used.
The table caption.
# NOT RUN {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.as_md_table(opal.variables(o, 'datashield', 'CNSIM1'))
opal.logout(o)
# }
Run the code above in your browser using DataLab