Question: The R statement data( iris ) loads the built-in R data set iris . This dataset has 150 rows and 5 columns. The 5 column
The R statement data(iris) loads the built-in R data set iris. This dataset has 150 rows and 5 columns. The 5 column names are "Sepal.Length","Sepal.Width","Petal.Length","Petal.Width" and "Species"
Write R code(s) to find the average values of Sepal.Length (the first column) for three species setosa, versicolor, and virginica (the fifth column), respectively. The returned results should be as follows:
| setosaver | sicolor | virginica |
| 5.006 | 5.936 | 6.588 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
