kable_array | R Documentation |
Print a higher-dimensional array with subheadings for the levels defined by the third and higher dimensions of the array.
kable_array(a, caption = "", ...)
a |
array |
caption |
an optional caption for the printed table |
... |
functions from kable extra and their arguments |
hmtl code to include in a 'asis' chunk
kable_array(Titanic)
kable_array(Titanic, row_spec = list(0, angle = -30),
add_header_above =list(c(' '= 1,'Gender'=2,Freq = 1)),
column_spec(1, bold = T, border_right = T))
## Not run:
kable_array(Titanic, row_spec = list(0, angle = -30),
add_header_above =list(c(' '= 1,'Gender'=2,Freq = 1)),
column_spec(1, bold = T, border_right = T)) %>%
save_kable(file = 'test.html', self_contained = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.