Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in R code please [25 marks] Load the iris data (included by default in R). (a) [10 marks) Write magrittr and/or dplyr code using pipe

image text in transcribed

in R code please

[25 marks] Load the iris data (included by default in R). (a) [10 marks) Write magrittr and/or dplyr code using pipe operators which: takes only those observations with sepal width > 3, computes the petal area as 7 X (petal length/2) x (petal width/2). (Hint: see ?pi) aggregates to produce the median petal area across species. (Hint: you may use either i) the functions subset, within, multiply_by, and aggregate, or ii) a combination of filter, mutate, multiply_by, group_by, and summarise)

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

2.3 Describe the requirements for reasonable accommodation.

Answered: 1 week ago

Question

13. You always should try to make a good first impression.

Answered: 1 week ago