I have been having some issues trying to do some financial forecasting for my University Project. I am very new to R and still learning the basics.
As you can maybe able to see there are two tables Finance data and Stress data . Was trying to multiply each other , example for Direct In data in finance to be multiplied by AC23 stress % by year.
While i can just multiply each other using simple multiplication rules i do not know how to reference the year and the stress scenario ( ie finance data in 2023 multiplied by the stress % in 2023 )
Can some one please help!!
I tried multiplying just the tables with each other but that doesn't help i need to reference the year and stress scenario for each individual cell.
General overview of what you want to do:
How this would look in the
tidyverse:Note that there are a couple of gotchas and things to consider.