to_tribble | R Documentation |
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 and converts factors to characters to retain the levels.
to_tribble(x, show = FALSE, digits = 5, to_clip = interactive())
x |
The tibble/dataframe to be converted into tribble code |
show |
Logical. Print code (otherwise, returned - print with |
digits |
Number of digits to round numeric columns to. |
to_clip |
Should code for vector be copied into clipboard? Defaults to TRUE in interactive use, but only works when |
to_tribble(mtcars[1:5, 1:3], show = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.