Skip to content

Commit

Permalink
Merge branch 'master' of github.com:larmarange/broom.helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Sep 30, 2021
2 parents 1990cb5 + 36d334e commit 2dd08d1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
14 changes: 12 additions & 2 deletions R/select_utilities.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#' Convert formula selector to a named list
#'
#' Functions takes a list of formulas, e.g. `list(starts_with("age") ~ "continuous")`,
#' and returns a named list, e.g. `list(age = "continuous")`.
#' Functions takes a list of formulas, a named list, or a combination of named
#' elements with formula elements and returns a named list.
#' For example, `list(age = 1, starts_with("stage") ~ 2)`.
#'
#' @section Shortcuts:
#' A shortcut for specifying an option be applied to all columns/variables
#' is omitting the LHS of the formula.
#' For example, `list(~ 1)` is equivalent to passing `list(everything() ~ 1)`.
#'
#' Additionally, a single formula may be passed instead of placing a single
#' formula in a list; e.g. `everything() ~ 1` is equivalent to
#' passing `list(everything() ~ 1)`
#'
#' @param x list of selecting formulas
#' @inheritParams .select_to_varnames
Expand Down
16 changes: 14 additions & 2 deletions man/dot-formula_list_to_named_list.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2dd08d1

Please sign in to comment.