Just spent 2 hours perplexed as to why my air tight code was giving me weird outputs. Key lesson? When you name a billion things test, test2, testclean, and so on, and when you neglect to restart your R session frequently, you end up with truly silly mistakes