https://github.com/cran/pracma
Tip revision: bf076735a09836a6103775a9d4efaf8f0ecad928 authored by Hans W. Borchers on 02 December 2018, 07:00:03 UTC
version 2.2.2
version 2.2.2
Tip revision: bf07673
combs.R
##
## c o m b s . R Test Suite
##
combs <- pracma::combs
randcomb <- pracma::randcomb
identical(combs(2, 1), 2)
identical(combs(c(1, 2, 3), 2), matrix(rep(c(1, 2, 3), each = 2), 3, 2))
identical(nrow(combs(1:6, 4)), 15L)
all(c(1,2,3) %in% randcomb(c(1,2,3), 3))