tidyr package is another gift from Hadley Wickham. This package provides functions to make your data tidy.
This means that after applying the
tidyr package's function, your data you will be arranged as per the following rules:
These rules will produce a dataset similar to the following one:
This structure, besides giving you a clearer understanding of your data, will let you work with it more easily.
Furthermore, this structure will let you take full advantage of the inner R-vectorized structure. ...