Description Usage Arguments Value Examples
Convert deal to dataframe representation
1 | deal_to_df(a, names_to = "g")
|
a |
deal |
names_to |
column name for placing gamble identifiers |
dataframe with 3 columns: gamble number, outcome and corresponding probability.
1 2 3 4 5 6 7 8 9 10 | a <- list(
data.frame(
x=c(5e5,0),
p=c(0.11,0.89)),
data.frame(
x=c(2.5e6,0),
p=c(0.10,0.90))
)
deal_to_df(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.