tribble {tibble} | R Documentation |
Create tibble
s laying out the data in rows, rather than
in columns. This is useful for small tables of data where readability is
important. Please see tibble-package for a general introduction.
tribble(...) frame_data(...)
... |
Arguments specifying the structure of a |
frame_data()
is an older name for tribble()
. It will eventually
be phased out.
A tibble
.
tribble( ~colA, ~colB, "a", 1, "b", 2, "c", 3 ) # tribble will create a list column if the value in any cell is # not a scalar tribble( ~x, ~y, "a", 1:3, "b", 4:6 )