The famous data set iris which gives the measurements in centimeters of the variables sepal length...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The famous data set iris which gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris is available in R. Type iris directly to see what it looks like. 1. List the variable names of the data set iris. What are the classes for each variable? 2. Select the subset of the data frame whose Species are setosa and report the median (use function median) of 'Sepal.Width' of the selected subset. 3. Select the subset of the data frame whose Species are either versicolor or virginica and report the average of 'Petal.Width' of the selected subset. 4. Select the subset of the data frame whose Sepal.Length are greater than 4.5 but less than 6.0. Report the variance (use function var) of 'Sepal.Length' of the selected subset. 5. Combine the data frames you got in part 2 and part 4 to one data frame. Report the number of observations in this data frame. 6. There are some duplicated observations in the data frame you obtained in part 5. Use help(unique) to learn the usage of the function unique and then utilize it to make the data frame you obtained in part 5 doesn't contain any duplicated observations. Report the number of observations in this data frame. The famous data set iris which gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris is available in R. Type iris directly to see what it looks like. 1. List the variable names of the data set iris. What are the classes for each variable? 2. Select the subset of the data frame whose Species are setosa and report the median (use function median) of 'Sepal.Width' of the selected subset. 3. Select the subset of the data frame whose Species are either versicolor or virginica and report the average of 'Petal.Width' of the selected subset. 4. Select the subset of the data frame whose Sepal.Length are greater than 4.5 but less than 6.0. Report the variance (use function var) of 'Sepal.Length' of the selected subset. 5. Combine the data frames you got in part 2 and part 4 to one data frame. Report the number of observations in this data frame. 6. There are some duplicated observations in the data frame you obtained in part 5. Use help(unique) to learn the usage of the function unique and then utilize it to make the data frame you obtained in part 5 doesn't contain any duplicated observations. Report the number of observations in this data frame.
Expert Answer:
Answer rating: 100% (QA)
1 dtiris dt dtfrmedt nmesdt slydt lss 2 vsubsetdtSei... View the full answer
Related Book For
Statistics Principles and Methods
ISBN: 978-0470904114
7th edition
Authors: Richard A. Johnson, Gouri K. Bhattacharyya
Posted Date:
Students also viewed these mathematics questions
-
The petal width (mm) of one kind of iris has a normal distribution. Suppose that, from a random sample of widths, the t based 90% confidence interval for the population mean width is (16.8, 19.6) mm....
-
Some data sets contain outliers, observations that fall well outside the overall pattern of the data. (We discuss outliers in more detail in Section 3.3.) Suppose, for instance, that you are...
-
The iris data described in Example 6 are given in the stem-and-leaf diagrams below. The MINITAB output for the analysis of the iris data is given below. Individual 95% CIs For Mean Based on Pooled...
-
Jarvis Company produces a product that has a selling price of $20.00 and a variable cost of $15.00 per unit. The company's fixed costs are $50,000. What is the break-even point measured in sales...
-
Incoming resident student Eddie Franz lives 107 miles west of the college. What percentage of incoming resident students live (a) in the same town as or west of Eddie, (b) east of Eddie, and (c)...
-
The combined electrical resistance R of two resistors R, and R, connected in parallel, is given by the equation below, where R, R, and R are measured in ohms. R and R are increasing at rates of 0.7...
-
In Example 22.5, derive Eqs. (22.9)-(22.11). Data From Example 22.5:- Equation 22.9 and 22.11:- Figure 22.8 shows an isothermal batch reactor in which the irreversible reactions A B C take place with...
-
What benefits do airline customers seek when they buy air travel tickets? Has Southwest done a better job than competitors of meeting the needs of these air travelers? In what ways ? Its the same...
-
Derby State University is a four-year public institution of higher education that features a robust and award-winning STEM curriculum. Located in the Southern United States, the heritage of...
-
The Shop at Home Network sells various household goods during live television broadcasts. The company owns several warehouses to hold many of the goods it sells, but also leases extra warehouse space...
-
Topper Sports, Incorporated, produces high-quality sports equipment. The companys Racket Division manufactures three tennis racketsthe Standard, the Deluxe, and the Prothat are widely used in amateur...
-
Mojito Mint Company has a debtequity ratio of 0.45. The required return on the companys unlevered equity is 17 per cent, and the pre-tax cost of the firms debt is 9 per cent. Sales revenue for the...
-
A stream of pure water fl owing at 1 mol/s is adiabatically mixed with a stream containing equamolar amounts of water and ethanol, also fl owing at 1 mol/s. This steady-state process occurs at a...
-
The Veblen Company and the Knight Company are identical in every respect except that Veblen is not levered. The market value of Knight Companys 6 per cent bonds is SKr1 million. Financial information...
-
The balance sheets of Banton Ltd as at 31 August 2024 and 31 August 2023 are shown below: You are also given the income statement of Banton Ltd for the year ended 31 August 2024: Further information...
-
The trial balance below represents a summary of the balances on the nominal ledger of Banega Ltd (a wholesaler of hats and headwear) as at 31 December 2024: The following issues also need to be dealt...
-
Find the exact x - intercepts of the function y = x 4 - 1 2 x 2 + 4 x + 1 5 . Show your work.
-
Parkin Industries, a U.S. company, acquired a wholly-owned subsidiary, located in Italy, at the beginning of the current year, for 200,000. The subsidiary's functional currency is the euro. The...
-
Refer to Exercise 5.47 and suppose instead that the mix consists of 2500 candies, of which 600 are brown, 1200 are yellow, and 700 are of other colors. Repeat parts (a)-(c) of Exercise 5.47 in this...
-
For the data set of Exercise 2.22, calculate the interquartile range. In Exercise 2.22 The following data represent the scores of 40 students on a college qualification test (courtesy of R. W....
-
The monthly income in dollars for seven sales persons at a car dealership are (a) Calculate the mean and median salary. (b) Which of the two is preferable as a measure of center and why? 2450 2275...
-
An element of an orthotropic lamina is subjected to an off-axis shear stress \(\tau_{x y}\) at an angle \(\theta\) as shown in Figure 2.21. (a) For an angle \(\theta=45^{\circ}\), determine the value...
-
Natural gas (methane) flows from a 3-in.-diameter gas main, through a 1-in.-diameter pipe, and into the burner of a furnace at a rate of \(100 \mathrm{ft}^{3} /\) hour. Determine the pressure in the...
-
SAE 30 oil at \(60^{\circ} \mathrm{F}\) flows through a 2-in.-diameter pipe with a mean velocity of \(5 \mathrm{ft} / \mathrm{s}\). Determine the value of the Reynolds number (see Example 1.4)....
Study smarter with the SolutionInn App