This one step creates tidy data for us. By default, melt refers to the transformed former column names as variable and the corresponding values as value. Conveniently, melt has two additional parameters, var_name and value_name, that give you the ability to rename these two columns: