在2.4节中,Hadley Wickham的"探索数据和模型的实用工具"示例中,我正在获得铸造熔融数据Error: could not find function "cast".我安装并加载了reshape2包.
> cast(msmithsm, time + subject ~ variable)
Error: could not find function "cast"
Run Code Online (Sandbox Code Playgroud)
Jos*_*ien 21
在reshape2中,cast()已经被两个函数所取代:acast()和dcast().
来自?cast,包装reshape2:
描述:
根据您是否需要矢量/矩阵/数组输出或数据帧输出,使用'acast'或'dcast'.