inst/snippet/dice-sample-space.R

dice <- 
	data.frame(red=rep(1:6,each=6),blue=rep(1:6,times=6))
with(dice,dice[(red<blue | blue==5 ) & (red + blue >= 9),])

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 2, 2019, 5:53 p.m.