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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!