deal_to_textdf: Convert deal to dataframe for pretty printing

Description Usage Arguments Value Examples

View source: R/deals.R

Description

Convert deal to dataframe for pretty printing

Usage

1
deal_to_textdf(a, big.mark = ",")

Arguments

a

deal

big.mark

thousand separator. Default is comma.

Value

dataframe with 2 pairs of 3 columns: gamble number, outcome and corresponding probability

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
a <- list(
  data.frame(
   x=c(5e5),
   p=c(1)),
  data.frame(
   x=c(2.5e6, 5e5, 0),
   p=c(0.1, 0.89, 0.01))
)

deal_to_textdf(a)

dmi3kno/deals documentation built on Dec. 11, 2019, 12:07 p.m.