powered by
Returns a random vector of 0's (correct) and 1's (incorrect) with defined proportions (default = 10% errors).
errDist(n = 10000, proportion = 10)
double
Number
Approximate proportion of errors in percentage
# Example 1: approx 10% errors x <- errDist(1000) table(x) # Example 2: approx 20% errors x <- errDist(1000, 20) table(x)
Run the code above in your browser using DataLab