curveball {backbone} | R Documentation |
curveball algorithm
curveball(M)
M |
matrix |
rm, a matrix with same row sums and column sums as M, but randomized 0/1 entries.
Algorithm and R implementation: Strona, Giovanni, Domenico Nappo, Francesco Boccacci, Simone Fattorini, and Jesus San-Miguel-Ayanz. 2014. “A Fast and Unbiased Procedure to Randomize Ecological Binary Matrices with Fixed Row and Column Totals.” Nature Communications 5 (June). Nature Publishing Group: 4114. doi: 10.1038/ncomms5114
curveball(davis)