wpgraphs
function.wpstats(ngame, players, wcards = NULL, numdeal = 1000, seed = 52, raw = FALSE)
wpsupportedgames
."Suicide King" or "KH"
"One Eyed Jacks" or c("JH", "JS")
"Deuces" or c("2H", "2C", "2D", "2S")
"Heinz 57" or c("5H", "5C", "5D", "5S", "7H", "7C", "7D", "7S")
"Pregnant Threes" or c("3H", "3C", "3D", "3S", "6H", "6C", "6D", "6S", "9H", "9C", "9D", "9S")
"Dr Pepper" or c("2H", "2C", "2D", "2S", "4H", "4C", "4D", "4S", "10H", "10C", "10D", "10S")
[,1] | game | chr |
pname parameter | [,2] | pnum |
numeric | players parameter | [,3] |
wild | chr | wcard parameter |
[,4] | mwtype | chr |
Winning hand type of Main hand | [,5] | swtype |
chr | Winning hand type of Split hand | [,6] |
mwscore | numeric | score of winning main hand |
[,7] | msscore | numeric |
Num players score = winning Main score | [,8] | mstype |
numeric | Num players type = winning Main type | [,9] |
swscore | numeric | score of winning Split hand |
[,10] | ssscore | numeric |
Num players score = winning Split score | [,11] | sstype |
numeric | Num players type = winning Split type | [,12] |
mppct | numeric | percent won if Main hand is won |
[,13] | sppct | numeric |
percent won if Split hand is won | [,14] | bppct |
numeric | percent won if Both hands are won | [,15] |
wcdeck | numeric | wildcards in deck before the deal |
[,16] | wcdeal | numeric |
wildcards in deck after the deal | [,1] | game |
wpgame
function numdeal
times,
generating a raw data frame. This data frame is then consolidated into
a gstat list, whose format depends on ngame
.wpgame
, wpgraphs
# example of the wpstats run to generate raw statistics
rawstat <- wpstats("Iron Cross Last Wild", 6, "Deuces", numdeal = 10, raw = TRUE)
head(rawstat)
# example of wpstats run to generate a gstat object, used by wpgraphs
wpstats("Seven Stud Hi-Lo", 4, numdeal = 10, seed = 100)
Run the code above in your browser using DataLab