Closed talegari closed 2 years ago
ideas: nesting(a, b) --> df.distinct(['a', 'b']) nesting(nesting(a, b), c) ==?nesting(a, b, c)
crossing(a, b) --> df.distinct'a').cross_join(df.distinct('b')) crossing(crossing(a, b), c) == crossing(a, b, c)
nesting -- ( crossing -- [
expand( [a, (b, [c, d])] )
https://tidyr.tidyverse.org/reference/complete.html https://tidyr.tidyverse.org/reference/expand.html