R error in '[<-.data.frame'… replacement has # items, need #

前端 未结 1 688
误落风尘
误落风尘 2021-01-12 07:27

I am new to R and this one is beyond me. The script below uses two dummy tables (result and count) each with two columns (A and B). I\'m running permutations tests to compar

相关标签:
1条回答
  • 2021-01-12 07:48

    This error pops up when you're unlucky and i <- runif(n) < 1/2 consists only of FALSE, i.e. no permutations happen. You need to add a check in the swap function to fix this problem.

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