Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this problem will use functions from the tidyverse package to manipulate datasets. 1 ) load the tidyverse package into R b ) use the pipe
this problem will use functions from the tidyverse package to manipulate datasets. load the tidyverse package into R b use the pipe command to create intermediary objects tod o the following; i use mutate function to create a new variable that computes the difference between values in the var and x variables; ii use the filter function to only include observations that got values equal to B or C for variable y remove observations that got value A for variable y; iii use the groupby and summarize functions to get the mean difference from the first step for each of the remining values in y; iv arrange them from the largest to smallest
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