Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started