build_frame: Build a data.frame from the user's description.

Description Usage Arguments Value See Also Examples

View source: R/cf.R

Description

A convenient way to build a 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 de-referenced.

Usage

1
build_frame(..., cf_eval_environment = parent.frame())

Arguments

...

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

cf_eval_environment

environment to evaluate names in.

Value

character data.frame

See Also

draw_frame, qchar_frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
tc_name <- "training"
x <- build_frame(
   "measure",                   tc_name, "validation" |
   "minus binary cross entropy",      5, -7           |
   "accuracy",                      0.8, 0.6          )
print(x)
str(x)
cat(draw_frame(x))

build_frame(
  "x" |
  -1  |
  2   )

WinVector/wrapr documentation built on Nov. 21, 2020, 8:31 p.m.