Open gvelasq opened 4 months ago
Hi, I saw that you currently use purrr::cross2()
to create the tab_sequence
object in tab2()
. PR https://github.com/gvelasq/tidytab/pull/25/commits/26c090ad337d8d2e81225a26e23039fb42b0e709 replaces cross2()
by tidyr::expand_grid()
, but this new function currently returns its output in a different order than cross2()
.
If tab_sequence
should retain its current order, there are a few options:
cross2()
.vctrs::vec_expand_grid()
underlies the tidyr solution, but you could use it directly.base::expand.grid()
also orders like cross2()
, but it is importantly different from tidyr::expand_grid()
in other ways; see linked docs.Also, the linked PR passes .filter = filter
to tidyr::expand_grid()
, but the function has no such parameter, so this won't work.
Related: https://github.com/tidyverse/purrr/issues/768