str2: Prints structure of an object recursively

Description Usage Arguments Details Value Examples

View source: R/str2.R

Description

From stackoverflow answer - https://stackoverflow.com/questions/62970933/how-to-output-tree-like-human-readable-object-structure-in-r

Usage

1
str2(obj)

Arguments

obj

A list or dataframe

Details

For printing the structure of dataframes with list columns, it's useful to pass in just the first row if you know the elements of the list column are of the same type

Value

Prints to terminal

Examples

1
str2(list("Hello", list(", ", list("world!"))))

yjunechoe/junebug documentation built on July 9, 2021, 7:12 p.m.