mc_tribble: Like 'dput' for Those Confined to the Tidyverse

Description Usage Arguments Author(s) References Examples

View source: R/mc_tribble.R

Description

Creates a dput-like pasteable format that can be used to create small tables.

Usage

1
mc_tribble(indf, indents = 4, mdformat = TRUE)

Arguments

indf

The input data.frame.

indents

The number of spaces to indent each line of output. Defaults to 4.

mdformat

Logical. Whether or not to add 4 spaces before every line in order to format as a code block. Defaults to TRUE.

Author(s)

Ananda Mahto. Name courtesy of Frank.

References

http://stackoverflow.com/q/42839626/1270695

Examples

1
2
3
4
5
## Not run: 
short_iris <- head(iris)
mc_tribble(short_iris)

## End(Not run)

mrdwab/SOfun documentation built on June 20, 2020, 6:15 p.m.