https://github.com/cran/pracma
Tip revision: 8ce01a0ebcafaba3021c8ae0ffb447eeed46ed90 authored by HwB on 28 October 2012, 00:00:00 UTC
version 1.2.5
version 1.2.5
Tip revision: 8ce01a0
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))