dunn测试没有关于coersion的错误

时间:2018-04-16 19:39:12

标签: r

我正在努力让dunn测试工作,我得到一个关于coersion的错误:

   dt = data.frame(c = 1:50 , group = rep(  c("a","b") ,each=25)  )

        dunn.test(dt$c   ~   dt$group )

Error in dunn.test(dt$c ~ dt$group) : 
  'pairlist' object cannot be coerced to type 'double'
In addition: Warning message:
In is.na(unlist(x)) :
  is.na() applied to non-(list or vector) of type 'language'

1 个答案:

答案 0 :(得分:0)

我有同样的错误-这是因为dunn.test()想要变量之间的逗号而不是〜

这可行:

function handleClick(){
    this.clicked = !this.isclicked;
}