Question: 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

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

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!