headl {NCmisc} | R Documentation |
A good way to preview large lists.
Description
An alternative to head(list) which allows limiting of large list components in the console display
Usage
headl(x, n = 6, skip = 20, skip2 = 10, ind = "", ind2 = " ")
Arguments
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 |
Value
prints truncated preview of a large list
Author(s)
Nicholas Cooper njcooper@gmx.co.uk
Examples
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)
[Package NCmisc version 1.2.0 Index]