Answered step by step
Verified Expert Solution
Question
1 Approved Answer
R Assignment ( 2 0 pts ) Due Sunday by 1 1 : 5 9 pm Points 2 0 Submitting a file upload Available until
R Assignment pts
Due Sunday by :pm
Points
Submitting a file upload
Available
until Jun at :pm
Please provide a word document and studio file with both code and results based on the below requirement scenario.
Scenario: You are a Data Scientist working for a consulting firm. One of your colleagues from the Auditing department has asked you to help them assess the financial statement of organization You have been supplied with two vectors of data: monthly revenue and monthly expenses for the financial year in question.
Revenue in months
Expenses in months
Your task is to calculate the following financial metrics:
profit for each month
profit after tax for each month the tax rate is
profit margin for each month equals to profit a after tax divided by revenue
good months where the profit after tax was greater than the mean for the year
bad months where the profit after tax was less than the mean for the year
the best month where the profit after tax was max for the year
the worst month where the profit after tax was min for the year
All results need to be presented as vectors. Results for dollar values need to be calculated with $ precision, but need to be presented in Units of $ie with no decimal points. Results for the profit margin ratio need to be presented in units of with no decimal points. Note: You colleague has warned you that it is okay for tax for any given month to be negative in accounting terms, negative tax translates into a deferred tax asset
HINT: round mean max min
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