list_array | R Documentation |
Turn an array into a list of smaller arrays sectioning along a margin
list_array(a, MARGIN)
a |
array |
MARGIN |
vector of dimensions along which to section |
list of subarrays with names consisting of headings for each subarray
a <- Titanic library(spida2) tab(a) tab(aperm(a,c(2,4,1,3)) tab(aperm(a,c(2,4,1,3)), pct = c(1,3,4)) round(tab(aperm(a,c(2,4,1,3)), pct = c(1,3,4)),1) list_array(round(tab(aperm(a,c(2,4,1,3)), pct = c(1,3,4)),1),3:4) list_array(tab(a),3:4) list_array(a,3:4) list_array(tab(a, pct = c(1,3:4),3:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.