working R-could not find function 'melt()'



reverse melt r (1)

The melt function is to be found in the reshape package.

If you do not have that package installed, then you will need to install it with install.packages("reshape") before you can use it. Then, when the package is installed, make it available with library(reshape). At which point you are good to go!

Update 2018: The package in R 3.6.1. is now called reshape2.

The reshape2 notes also say:

reshape2 is retired: only changes necessary to keep it on CRAN will be made. We recommend using tidyr instead.

tidyr does not contain the melt function.

Possible Duplicate:
Error: could not find function … in R

I find various references to the function melt(), actually melt.data.frame() in stackoverflow for R. But when I call it in R, it gives me

Error: could not find function "melt"

How do I load that function so I can call it?





r