As we have seen, there are two different paradigms to define the layout of a dataset. To change the layout of a dataset, here are the steps of a new paradigm. We need to use the
reshape package, where all the functions are implemented following the new layout. The main idea of the
reshape package is melting a dataset and then casting it to a suitable layout. In the section, New
layout of a dataset, we talked about melting a dataset and what it looks like. Just to recall, in molten data each row represents a single observation of a
single variable in the dataset. Also, it contains only the
identifier variables and a
value variable to represent what is being measured. In this section, we will discuss ...