A modified version of the str() function that limits the length of displayed lists.
Source:R/base.R
strh.Rd
A modified version of the str() function that limits the length of displayed lists.
Usage
strh(object, max.level = 1, list.len = nth_prime(5 - max.level), ...)
Arguments
- object
the object to be printed.
- max.level
the maximum number of nested levels to be printed. Default is 1.
- list.len
the maximum number of elements to be printed for a list. Default is determined by the value of max.level and the nth prime number.
- ...
additional arguments to be passed to str().