tidyr::expand() and tidyr::complete().Fast versions of tidyr::expand() and tidyr::complete().
f_expand(.data, ..., .sort = FALSE, .by = NULL, .cols = NULL)f_complete(.data, ..., .sort = FALSE, .by = NULL, .cols = NULL, fill = NA)
crossing(..., .sort = FALSE)
nesting(..., .sort = FALSE)
A data.frame of expanded groups.
A data frame
Variables to expand.
Logical. If TRUE expanded/completed variables are sorted.
The default is FALSE.
(Optional). A selection of columns to group by for this operation. Columns are specified using tidy-select.
(Optional) alternative to ... that accepts
a named character vector or numeric vector.
If speed is an expensive resource, it is recommended to use this.
A named list containing value-name pairs to fill the named implicit missing values.
crossing and nesting are helpers that are basically identical to
tidyr's crossing and nesting.