Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'

前端 未结 2 1956
心在旅途
心在旅途 2020-12-11 17:01

I am applying Aprior algorithm, and while plotting there is an error.

I have installed packages arules and arulesviz.

The data

相关标签:
2条回答
  • 2020-12-11 17:15

    I had this issue too and then realized that I forgot to load the library with

    library(arulesViz)
    

    after installing the package with:

    install.packages("arulesViz")
    
    0 讨论(0)
  • 2020-12-11 17:16

    This problem is caused by library installed incomplete(I guess it might put the wrong name(version) in the pack of arulesViz).

    You can download https://cran.rstudio.com/bin/windows/contrib/3.3/seriation_1.2-1.zip manually,then use "r-studio menu -> tools -> install packages.." to install above zip file downloaded from the site.

    Then try to redo install.packages("arulesViz") and library(arulesViz), it will be workable. Done.

    0 讨论(0)
提交回复
热议问题