Description Usage Arguments Details Value Author(s) References
View source: R/comb.summands.R
Returns all combinations of k numbers between 0 and n whose sum equals n.
1 | comb.summands(n, k)
|
n |
the sum of the k summands |
k |
the number of summands |
Returns all combinations of k numbers (non-negative integers) between 0 and n whose sum equals n. The order of the summands matters, i.e. 2+3=5 and 3+2=5 would count as two different combinations.
A matrix with k columns. Each row contains a different combination of k non-negative integers which sum up to n.
Christoph Kurz
"Parameterizing cell-to-cell regulatory heterogeneities via stochastic transcriptional profiles" by Sameer S Bajikar*, Christiane Fuchs*, Andreas Roller, Fabian J Theis^ and Kevin A Janes^: PNAS 2014, 111(5), E626-635 (* joint first authors, ^ joint last authors) <doi:10.1073/pnas.1311647111>
"Pheno-seq - linking visual features and gene expression in 3D cell culture systems" by Stephan M. Tirier, Jeongbin Park, Friedrich Preusser, Lisa Amrhein, Zuguang Gu, Simon Steiger, Jan-Philipp Mallm, Teresa Krieger, Marcel Waschow, Bjoern Eismann, Marta Gut, Ivo G. Gut, Karsten Rippe, Matthias Schlesner, Fabian Theis, Christiane Fuchs, Claudia R. Ball, Hanno Glimm, Roland Eils & Christian Conrad: Sci Rep 9, 12367 (2019) <doi:10.1038/s41598-019-48771-4>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.