-
-
Save garrettgman/9629323 to your computer and use it in GitHub Desktop.
face | suit | value | |
---|---|---|---|
king | spades | 13 | |
queen | spades | 12 | |
jack | spades | 11 | |
ten | spades | 10 | |
nine | spades | 9 | |
eight | spades | 8 | |
seven | spades | 7 | |
six | spades | 6 | |
five | spades | 5 | |
four | spades | 4 | |
three | spades | 3 | |
two | spades | 2 | |
ace | spades | 1 | |
king | clubs | 13 | |
queen | clubs | 12 | |
jack | clubs | 11 | |
ten | clubs | 10 | |
nine | clubs | 9 | |
eight | clubs | 8 | |
seven | clubs | 7 | |
six | clubs | 6 | |
five | clubs | 5 | |
four | clubs | 4 | |
three | clubs | 3 | |
two | clubs | 2 | |
ace | clubs | 1 | |
king | diamonds | 13 | |
queen | diamonds | 12 | |
jack | diamonds | 11 | |
ten | diamonds | 10 | |
nine | diamonds | 9 | |
eight | diamonds | 8 | |
seven | diamonds | 7 | |
six | diamonds | 6 | |
five | diamonds | 5 | |
four | diamonds | 4 | |
three | diamonds | 3 | |
two | diamonds | 2 | |
ace | diamonds | 1 | |
king | hearts | 13 | |
queen | hearts | 12 | |
jack | hearts | 11 | |
ten | hearts | 10 | |
nine | hearts | 9 | |
eight | hearts | 8 | |
seven | hearts | 7 | |
six | hearts | 6 | |
five | hearts | 5 | |
four | hearts | 4 | |
three | hearts | 3 | |
two | hearts | 2 | |
ace | hearts | 1 |
Hello, I had a question, in the following code on page 127
same <- symbols[1] == symbols[2] && symbols[2] == symbols[3]
why are there two & symbols? I know the meaning of one & but why are there two? Thank you!!
Hello, I had a question, in the following code on page 127
same <- symbols[1] == symbols[2] && symbols[2] == symbols[3]why are there two & symbols? I know the meaning of one & but why are there two? Thank you!!
okay, I just read the next page of the book which clarified my doubt, thank you!
Hello, On page 134, it should be "And when cherries equal two" and not three. The cherries equal three scenario should be taken care of by Case 1 where we have three of the same symbol.
And when cherries equals three, we have:
cherries + 1
3
c(0, 2, 5)[cherries + 1]
5
I just wanted to clarify this, please do correct me if I am wrong. Thank you!
Your book really help to start R programming: smooth and progressive approach!
That is great book. Thank you !
Thank you for the book, and for making it available for free. Really appreciated.
I'm really thankful
Thank you for putting this together. Going through it now
This is a really engaging course and got me excited to learn. Thanks a lot!
Thank you!
Muchas GRACIAS Sr. Garrett !!
El libro está BIEN PADRE e INTERESANTE, APRENDE UNO RÁPIDO... es la primera vez que aprendo a programar.
DIOS lo bendiga siempre!!
Carlos
Hi Felipe, I don't know if its too late, but I had a similar problem and thought that, since you have a Spanish name, like I do, our problem had something to do with the region where we are located. Indeed I found a solution. The problem is that the default separator for Spanish speaking regions is a semicolon (;), not a comma. Hence, when you download the data to Excel it will change some of the quotation marks and commas. To solve this issue you can follow the instructions in this link: https://harvestmedia.zendesk.com/hc/en-us/articles/360023978031-Opening-Excel-files-with-the-correct-CSV-list-separator#:~:text=CSV%20(comma%20delimited)%20will%20not,comma%20separator%20or%20semicolon%20separator.
I think that this may help other Spanish speaking people encountering a similar problem in the future.
I hope it helps.
Is it just me, or are there others who are bothered by the "value" for "jack", "queen", and "king" being set to "11, 12, and 13" respectively?
Perhaps there is some other use that will be made of the "value" numbers, but that should be pointed out right here and now.
I loaded the CSV file into EXCEL and changed those values to all be "10." I did this for the obvious reason.
Thank you for your reply! I get it now, we are getting things in order every time we run this function, queen followed by jack and so on... Thank you again for clarifying!!