Description Usage Arguments Value Examples
Convert data frame to deal
1 | df_to_deal(df, names_from = NULL)
|
df |
data frame of 3 columns: gamble id, outcome |
names_from |
character name of the column, containing gamble id. If missing, it will be a first column other than |
deal
1 2 3 4 5 | df <- data.frame(g=c("G1","G2","G2"),
x=c(100, 200, 50),
p=c(1, 0.5, 0.5)
)
df_to_deal(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.