In following Hadley Wickham's "Practical tools for exploring data and models" examples in section 2.4, Casting molten data I'm getting Error: could not find function "cast"
. I have the reshape2 package installed and loaded.
> cast(msmithsm, time + subject ~ variable)
Error: could not find function "cast"
Had related issue (Error: could not find function "dcast"). I had old library, library(plyr), so just added to code...
Then dcast worked again
In reshape2,
cast()
has been replaced by two functions:acast()
anddcast()
.From
?cast
, in package reshape2: