melt: Turn variable names and values into two columns
Description
Turn the names and values of all pending variables into two columns. These variables are inversely selected inside function (cols) and waiting to be melted. After melting, the data format changes from wide to long.
Usage
melt(data, cols = NULL)
Value
A long-format data frame from its original wide format.
Arguments
data
A data frame to melt, from the column start to the column end.
cols
Inversely selected columns inside function, except which are columns waiting to be melted.