Skip to content

Commit 43f86d2

Browse files
authored
Merge pull request #55 from jwood000/cartesian_product
Cartesian product vignettes update
2 parents 7ca19d4 + 1d76e06 commit 43f86d2

22 files changed

+761
-618
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
![](<https://cranlogs.r-pkg.org/badges/grand-total/RcppAlgos?color=brightgreen>)
88
[![Codacy Badge](<https://app.codacy.com/project/badge/Grade/e7fef773f6514aa4a2decda9adf57ae8>)](<https://app.codacy.com/gh/jwood000/RcppAlgos/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade>)
99
[![Dependencies](<https://tinyverse.netlify.app/badge/RcppAlgos>)](<https://cran.r-project.org/package=RcppAlgos>)
10-
[![R-CMD-check](https://github.com/jwood000/RcppAlgos/actions/workflows/R-CMD-check.yml/badge.svg)](https://github.com/jwood000/RcppAlgos/actions/workflows/R-CMD-check.yml)
11-
[![Codecov test coverage](https://codecov.io/gh/jwood000/RcppAlgos/branch/main/graph/badge.svg)](https://app.codecov.io/gh/jwood000/RcppAlgos?branch=main)
10+
[![R-CMD-check](<https://github.com/jwood000/RcppAlgos/actions/workflows/R-CMD-check.yml/badge.svg>)](<https://github.com/jwood000/RcppAlgos/actions/workflows/R-CMD-check.yml>)
11+
[![Codecov test coverage](<https://codecov.io/gh/jwood000/RcppAlgos/branch/main/graph/badge.svg>)](<https://app.codecov.io/gh/jwood000/RcppAlgos?branch=main>)
1212
<!-- badges: end -->
1313

1414
A collection of high performance functions and iterators implemented in C++ for solving problems in combinatorics and computational mathematics.
@@ -207,13 +207,14 @@ tail(algos, n = 3)
207207

208208

209209
## N.B. Since we are passing more than one type, a data.frame is returned
210-
head(expand.grid(
211-
c(rep(list(letters[1:3]), 3), list(1:3))
212-
), n = 3)
210+
expandGrid(
211+
c(rep(list(letters[1:3]), 3), list(1:3)),
212+
upper = 3
213+
)
213214
#> Var1 Var2 Var3 Var4
214215
#> 1 a a a 1
215-
#> 2 b a a 1
216-
#> 3 c a a 1
216+
#> 2 a a a 2
217+
#> 3 a a a 3
217218

218219

219220
## With RcppAlgos::comboGrid order doesn't matter, so c(1, 1, 2),

docs/articles/CombPermConstraints.html

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/CombinatorialSampling.html

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)