headl | R Documentation |
An alternative to head(list) which allows limiting of large list components in the console display
headl(x, n = 6, skip = 20, skip2 = 10, ind = "", ind2 = " ")
x |
a list to preview |
n |
The number of values to display for the deepest nodes of the list |
skip |
number of first level elements to display before skipping the remainder |
skip2 |
number of subsequent level elements to display before skipping the remainder |
ind |
indent character for first level elements |
ind2 |
indent character for subsequent level elements |
prints truncated preview of a large list
Nicholas Cooper njcooper@gmx.co.uk
sub1 <- list(list(1:100),list(2:101),list(101:200),list(201:300),list(301:400)) big.list <- list(sub1,sub1,sub1,sub1,sub1,sub1) headl(sub1) headl(big.list,skip=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.