This is the development site for Hands-On Programming with R, a book that teaches how to program in R, with hands-on examples. Read the book at https://rstudio-education.github.io/hopr.
gives at my end an ogoing deal() output of 1 king spades 13.
I do not understand why this happens (on R4.3.3 on Slackware64 linux with RStudio 2023.12.1 Build 402).
I only got this to work with changing all calls to refer to the setup-environment; not the global one. With an extra function STOCK that returns the current state of the used deck one can see what happens after SHUFFLE and DEAL...
Hi, the approach of:
gives at my end an ogoing
deal()
output of1 king spades 13
. I do not understand why this happens (on R4.3.3 on Slackware64 linux with RStudio 2023.12.1 Build 402).My unsuccessful run:
I only got this to work with changing all calls to refer to the setup-environment; not the global one. With an extra function
STOCK
that returns the current state of the used deck one can see what happens afterSHUFFLE
andDEAL
...Trying the original setup again:
The original
decki
is returned afterdeal()
, not the shuffled one...