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
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.