Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Write the dplyr code to pipe the tec datafiame to do the following operations: sort the data by mfincdate, insert a new column called
a) Write the dplyr code to pipe the "tec" datafiame to do the following operations: sort the data by mfincdate, insert a new column called amountpersecurity, which is total amounty security count, apply filter to see funds with amountpersecurity greater than or equal to 2000. Use library(dplyr) b) Write dbplyr code to get the following table. Read each table in the database as a tibble. Then, inner join them using proper IDs. Then,. group by iclocation, and summarize. Assign the result to a variable called "g". Collect g and View the result. The table should look like: Information for tec dataframe: df = "select m.mfname, m.mfincedate, count(s. securityid) as securitycount, sum(p.amount) as totalamount from mutualfund in inner join portiolio p on m.m fid =p.m. .id inner join securities s on p. securityid = s. securityid group by m.mfname;" tee
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