Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Vector selection: the good times ( 4 ) Another way to tackle the previous exercise is by using the names of the vector elements (

Vector selection: the good times (4)
Another way to tackle the previous exercise is by using the names of the vector elements (Monday, Tuesday, ...) instead of their numeric positions. For example,
poker_vector["Monday"]
will select the first element of poker_vector since "Monday" is the name of that first element.
Just like you did in the previous exercise with numerics, you can also use the element names to select multiple elements, for example:
poker_vector[c("Monday", "Tuesday")]
() Instructions
Select the first three elements in poker_vector by using their names:
"Monday" , "Tuesday" and "Wednesday" . Assign the result of the selection to poker_start .
Calculate the average of the values in poker_start with the mean() function. Simply print out the result so you can inspect it.
image text in transcribed

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Have they worked with a facilitator before, with what result?

Answered: 1 week ago

Question

5-26. We are of the conviction that writing is important.

Answered: 1 week ago

Question

5-27. In all probability, were likely to have a price increase.

Answered: 1 week ago