Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) (2 points) Create a data frame `df` with one numeric vector `indices` and two character vectors `firstNames` and `surnames` with length 5, respectively. The

a) (2 points) Create a data frame `df` with one numeric vector `indices` and two character vectors `firstNames` and `surnames` with length 5, respectively. The vector `indices` consists of randomly chosen values from 1 to 10 (the same values are NOT allowed to appear several times). The entries of `firstNames` are randomly chosen from the names 'Alex', 'Peter', 'Tom' (the same values are allowed to appear several times), and the entries of `surnames` are randomly chosen from the names 'James' and 'Miller' (the same values are allowed to appear several times)

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

Step: 3

blur-text-image

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

Intro Stats

Authors: Richard D. De Veaux, Paul F. Velleman, David E. Bock

3rd edition

321533283, 321533289, 9780321463708, 9780321503848, 9780321503800, 9780321499431, 9780321499417, 978-0321500458

More Books

Students also viewed these Mathematics questions

Question

What are your options besides a rote memory approach?

Answered: 1 week ago