For example, Im is currently working on a feature that lets you know how much money you have if you invest in the stock market. I am currently using a loop structure that really annoys me because I know that probably the best way to code this and use vectors in R. Im also creates dummy vectors before running the function, which seems a little strange too.
New to R (just getting started!), So any helpful guide is much appreciated!
set.seed(123)
source share