Use reshape2:::melt.data.frame(...)
.
melt
is actually a method:
> reshape2::melt
function (data, ..., na.rm = FALSE, value.name = "value")
{
UseMethod("melt", data)
}
<environment: namespace:reshape2>
So, in the case of a data frame, R will search for melt.data.frame
, which is in reshape
:
> melt.data.frame
function (data, id.vars, measure.vars, variable_name = "variable",
na.rm = !preserve.na, preserve.na = TRUE, ...)
{
...
}
<environment: namespace:reshape>
As I indicated though, the best solution might just be to upgrade everything. It is true that (Edit: I was thinking ggplot2.)plyr
used to load reshape
, but it doesn't anymore.