Description Usage Arguments Author(s) References Examples
Creates a dput
-like pasteable format that can be used to create small tables.
1 | mc_tribble(indf, indents = 4, mdformat = TRUE)
|
indf |
The input |
indents |
The number of spaces to indent each line of output. Defaults
to |
mdformat |
Logical. Whether or not to add 4 spaces before every line in
order to format as a code block. Defaults to |
Ananda Mahto. Name courtesy of Frank.
http://stackoverflow.com/q/42839626/1270695
1 2 3 4 5 | ## Not run:
short_iris <- head(iris)
mc_tribble(short_iris)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.