Description Usage Arguments Details Value Author(s) References See Also Examples
Given the number of states, this function returns all of the pairs of indexes corresponding to those states.
1 2 | Rcpp_combn_zerostart(n_to_choose_from, k_to_choose,
maxlim = 1e+07)
|
n_to_choose_from |
N in N choose K |
k_to_choose |
K in N choose K |
maxlim |
To avoid memory overruns, the number of
combinations can be no larger than |
The C++ version is MUCH faster than the plain-R version.
outarray
an integer matrix with outarray
rows; the number of columns is the number of
combinations.
Nicholas Matzke matzke@berkeley.edu
Matzke N (2012). "Founder-event speciation in BioGeoBEARS package dramatically improves likelihoods and alters parameter inference in Dispersal-Extinction-Cladogenesis (DEC) analyses." _Frontiers of Biogeography_, *4*(suppl. 1), pp. 210. ISSN 1948-6596, Poster abstract published in the Conference Program and Abstracts of the International Biogeography Society 6th Biannual Meeting, Miami, Florida. Poster Session P10: Historical and Paleo-Biogeography. Poster 129B. January 11, 2013, <URL: http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster>.
rcpp_calc_anclikes_sp
,
rcpp_mult2probvect
,
rcpp_convolve
1 2 | Rcpp_combn_zerostart(n_to_choose_from=4, k_to_choose=2, maxlim=1e+07)
Rcpp_combn_zerostart(n_to_choose_from=4, k_to_choose=3, maxlim=1e+07)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.