to_tribble: Converts a tibble to tribble code

View source: R/misc.R

to_tribbleR Documentation

Converts a tibble to tribble code

Description

Tribbles are an easy way to legibly input data, and therefore helpful for teaching and interactive work. This function takes a tibble and returns code that can recreate it. Note that this function converts "NA" to NA.

Usage

to_tribble(x, show = FALSE)

Arguments

x

The tibble to be converted into tribble code

show

Logical. Print code (otherwise, returned - print with 'cat()' to get linebreaks etc)


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.