Question: Creating and Subsetting data frames: (4) You will use one of R's built-in datasets. Load it using data (iris). In 1936, Edgar Anderson collected data

Creating and Subsetting data frames: (4)

You will use one of R's built-in datasets. Load it using data ("iris").

In 1936, Edgar Anderson collected data to quantify the geographic variations of iris flowers. The data set consists of 50 samples from each of the three sub-species (iris setosa, iris virginica, and iris versicolor). Four features were measured in centimeters (cm): the lengths and the widths of both sepals and petals.

Once you have familiarized yourself with the dataset, write code to answer the following questions:

a. Select 10th to 13th rows of 3rd column.

b. Subsetting data with where Species=virginica

c. Subsetting observations where Petal.Length >= 5

d. Subsetting Petal.Length where Sepal.Width <=3

Please answer a,b,c,d and write explanation

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!