Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algebra And Trigonometry (Subscription)

Authors: Michael Sullivan

9th Edition

0321830741, 9780321830746

More Books

Students also viewed these Mathematics questions