strh: A modified version of the str() function that limits the...

View source: R/base.R

strhR Documentation

A modified version of the str() function that limits the length of displayed lists.

Description

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().

Value

A printed representation of the object.


torfason/zulutils documentation built on Aug. 21, 2023, 5:46 p.m.