Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

6. Describe why communication is vital to everyone

Answered: 1 week ago