R – So many ways to code one thing, deciding what’s best?


Have you ever been in a situation where you code something and then find yourself wondering if you did it the best way? So you end up coding another way, and then find yourself again asking if you could have done it better. How do you determine when it is time to stop and move on to the next problem so you can avoid going in circles?

Best Solution

Do the simplest thing that works.