How to structure your data workflow efficiently using R