Learn R Programming

backbone (version 1.4.0)

curveball: curveball algorithm

Description

curveball algorithm

Usage

curveball(M)

Arguments

M

matrix

Value

rm, a matrix with same row sums and column sums as M, but randomized 0/1 entries.

References

Algorithm and R implementation: Strona, Giovanni, Domenico Nappo, Francesco Boccacci, Simone Fattorini, and Jesus San-Miguel-Ayanz. 2014. <U+201C>A Fast and Unbiased Procedure to Randomize Ecological Binary Matrices with Fixed Row and Column Totals.<U+201D> Nature Communications 5 (June). Nature Publishing Group: 4114. DOI:10.1038/ncomms5114.

Examples

Run this code
# NOT RUN {
curveball(davis)
# }

Run the code above in your browser using DataLab