This the generic melt function. See the following functions for the details about different data structures:
melt(data, ..., na.rm = FALSE, value.name = "value")Data set to melt
further arguments passed to or from other methods.
Should NA values be removed from the data set? This will convert explicit missings to implicit missings.
name of variable used to store values
melt.data.frame for data.frames
melt.array for arrays, matrices and tables
melt.list for lists