Question: deck52 Build a data.frame to represent a standard deck of 52 playing cards. It should have 52 rows and one column for each characteristic of


deck52 Build a data.frame to represent a standard deck of 52 playing cards. It should have 52 rows and one column for each characteristic of a playing card: - color 6 {"black", "red"} - suit 6 {"clubs" , "spades", "diamonds" , "hearts" } - name 6 {"ace", "2", "3" , . . . , "king"} 0 rank{1,2,3, ..., 12,13} - value{1,2,3, ..., 9,10,10,10,10 }. For more information or clarity, see here: https://en.wikipedia.org/wiki/Standardi52-cardideck Instructions: 1. Clean. Stylish. (10 points) 2. (25 points) Build a vector with 52 elements for each column: color, suit , name, rank, value. Useful commands are c() and rep(). Use data.frame() to combine the columns into a single data.frame called deck52. Conrm that your data.frame has 52 rows and 5 columns. Run names (mydeck)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
