frame_data {tibble}R Documentation

Row-wise tibble creation

Description

Create data_frames laying out the data in rows, rather than in columns. This is useful for small tables of data where readability is important.

Usage

frame_data(...)

tibble(...)

Arguments

...

Arguments specifying the structure of a data_frame. Variable names should be formulas, and may only appear before the data.

Value

A tbl_df.

Examples

frame_data(
  ~colA, ~colB,
  "a",   1,
  "b",   2,
  "c",   3
)

# frame_data will create a list column if the value in each cell is
# not a scalar
frame_data(
  ~x,  ~y,
  "a", 1:3,
  "b", 4:6
)

[Package tibble version 1.0 Index]