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?
The
meltfunction is to be found in thereshapepackage.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 withlibrary(reshape). At which point you are good to go!Update 2018: The package in R 3.6.1. is now called
reshape2.The
reshape2notes also say:tidyrdoes not contain themeltfunction.