Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. How many rows and columns are in iris? 2. Create a new data frame named sub1 which includes only the first 3 rows and

image text in transcribed
image text in transcribed
1. How many rows and columns are in iris? 2. Create a new data frame named sub1 which includes only the first 3 rows and the last row of iris. Display subl. 3. Create a new data frame named sub2 which includes only rows in iris where the Sepal . Length is greater than 7.2 and includes only the columns Sepal . Length, Sepal. Width, and Species. Display sub2. 4. Create a vector named Virginica . Is. The. Best, which has the value 10 whenever the variable Species (from iris) is equal to "virginica" and has the value 0 otherwise. Display Virginica . Is . The . Best. 5. Save the column named Petal . Width (from iris) as its own vector named pw. Use functions to find the mean, median, maximum, and minimum of pw. We didn't talk about all of these in class, but you should be able to find them with a little Googling and/ or guessing.]

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

Precalculus Enhanced With Graphing Utilities

Authors: Michael Sullivan, Michael Sullivan III

7th Edition

0134268210, 9780134268217

More Books

Students also viewed these Mathematics questions

Question

Excel caculation on cascade mental health clinic

Answered: 1 week ago

Question

The number of people commenting on the statement

Answered: 1 week ago

Question

Peoples understanding of what is being said

Answered: 1 week ago