get_bin_matrix | R Documentation |
Generate a binary random matrix of ones and zeros with a threshold parameter
get_bin_matrix(m, n, success)
m |
The number of columns |
n |
The number of rows |
success |
The probability of success in each trial. Default is 0.5 |
Matrix with ones and zeros
get_bin_matrix(m = 3 , n = 4, success = 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.