draw_frame: Render a simple data.frame in build_frame format.

Description Usage Arguments Value See Also Examples

View source: R/cf.R

Description

Render a simple data.frame in build_frame format.

Usage

1
2
3
4
5
6
7
draw_frame(
  x,
  ...,
  time_format = "%Y-%m-%d %H:%M:%S",
  formatC_options = list(),
  adjust_for_auto_indent = 2
)

Arguments

x

data.frame (with atomic types).

...

not used for values, forces later arguments to bind by name.

time_format

character, format for "POSIXt" classes.

formatC_options

named list, options for formatC()- used on numerics.

adjust_for_auto_indent

integer additional after first row padding

Value

character

See Also

build_frame, qchar_frame

Examples

1
2
3
4
5
6
7
tc_name <- "training"
x <- build_frame(
  "measure"                   , tc_name, "validation", "idx" |
  "minus binary cross entropy", 5      , 7           , 1L    |
  "accuracy"                  , 0.8    , 0.6         , 2L    )
print(x)
cat(draw_frame(x))

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