qchar_frame: Build a quoted data.frame.

Description Usage Arguments Details Value See Also Examples

View source: R/cf.R

Description

A convenient way to build a character data.frame in legible transposed form. Position of first "|" (or other infix operator) determines number of columns (all other infix operators are aliases for ","). Names are treated as character types.

Usage

1

Arguments

...

cell names, first infix operator denotes end of header row of column names.

Details

qchar_frame() uses bquote() .() quasiquotation escaping notation.

Value

character data.frame

See Also

draw_frame, build_frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
loss_name <- "loss"
x <- qchar_frame(
   measure,                      training,     validation |
   "minus binary cross entropy", .(loss_name), val_loss   |
   accuracy,                     acc,          val_acc    )
print(x)
str(x)
cat(draw_frame(x))

qchar_frame(
  x |
  1 |
  2 ) %.>% str(.)

WinVector/wrapr documentation built on Jan. 19, 2019, 5:29 p.m.