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 look 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 said, the best solution would be to simply upgrade everything. It is true that plyr used to load reshape , but this is no longer the case. (Edit: I thought ggplot2.)
source share