It is very weird to me, why he doesn&#x27;t use more of tidyr and dplyr. Those are wonderful packages. The whole part of changing types of data frame, would become single call to `mutate` from dplyr package.<p>There is great blog [0] post explaining working with those tools. What is most important here, is that dplyr and tidyr makes data organization and analysis concise, effecient and readable way.<p>[0] <a href="http:&#x2F;&#x2F;zevross.com&#x2F;blog&#x2F;2015&#x2F;01&#x2F;13&#x2F;a-new-data-processing-workflow-for-r-dplyr-magrittr-tidyr-ggplot2&#x2F;" rel="nofollow">http:&#x2F;&#x2F;zevross.com&#x2F;blog&#x2F;2015&#x2F;01&#x2F;13&#x2F;a-new-data-processing-wor...</a>