当从Mosaic软件包中使用plotFun时,RStudio为什么会给出错误消息?

时间:2018-09-24 14:52:26

标签: rstudio r-mosaic

我的学生正在使用RStudio的Mosaic包,其中之一无法使用plotFun函数。每次尝试使用它时,都会遇到相同的错误。例如,

> plotFun(x+2~x)
Error in as.data.frame.default(x[[i]], optional = TRUE) : 
cannot coerce class ‘"formula"’ to a data.frame

对出什么问题有任何想法吗?在上课时,她将经常需要使用此功能。她是否缺少R或RStudio的软件包或更新?

0 个答案:

没有答案