Solved: Error: could not find function “cast”

1

If you’ve been trying to cast in R and have run into the following error:

Error: could not find function "cast"

Then here is the solution. You must install either reshape or reshape2. I actually installed both. Here are the steps in R:

> install.packages("reshape", type="source")
> install.packages("reshape2", type="source")
> library(reshape)
> library(reshape2)

Cast should now work. Good luck!

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here