Displaying 2 results from an estimated 2 matches for "rflip".
Did you mean:
flip
2012 Apr 11
0
mosaic 0.4 on CRAN
...xyplot( length ~ width, groups= sex, KidsFeet ) # scatter plot
> with different symbols for boys and girls
> plotFun(L(x,'B') ~ x, add=TRUE) # add model fit (for boys) to plot
> plotFun(L(x,'G') ~ x, add=TRUE, lty=2) # add model fit (for girls)
> to plot
> rflip(10) # flip a coin 10 times
Flipping 10 coins [ Prob(Heads) = 0.5 ] ...
T H T H H H T H H T
Result: 6 heads.
> do(2) * rflip(10) # do that twice; notice that do() extracts
> interesting info
n heads tails
1 10 4 6
2 10 6 4
> ladyTastingTea <- do(5000) * rflip...
2012 Apr 11
0
mosaic 0.4 on CRAN
...xyplot( length ~ width, groups= sex, KidsFeet ) # scatter plot
> with different symbols for boys and girls
> plotFun(L(x,'B') ~ x, add=TRUE) # add model fit (for boys) to plot
> plotFun(L(x,'G') ~ x, add=TRUE, lty=2) # add model fit (for girls)
> to plot
> rflip(10) # flip a coin 10 times
Flipping 10 coins [ Prob(Heads) = 0.5 ] ...
T H T H H H T H H T
Result: 6 heads.
> do(2) * rflip(10) # do that twice; notice that do() extracts
> interesting info
n heads tails
1 10 4 6
2 10 6 4
> ladyTastingTea <- do(5000) * rflip...