Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-formula_list_to_named_list

Convert formula selector to a named list


Description

Functions takes a list of formulas, e.g. list(starts_with("age") ~ "continuous"), and returns a named list, e.g. list(age = "continuous").

Usage

.formula_list_to_named_list(
  x,
  data = NULL,
  var_info = NULL,
  arg_name = NULL,
  select_single = FALSE
)

Arguments

x

list of selecting formulas

data

A data frame to select columns from. Default is NULL

var_info

A data frame of variable names and attributes. May also pass a character vector of variable names. Default is NULL

arg_name

Optional string indicating the source argument name. This helps in the error messaging. Default is NULL.

select_single

Logical indicating whether the result must be a single variable. Default is FALSE


broom.helpers

Helpers for Model Coefficients Tibbles

v1.3.0
GPL-3
Authors
Joseph Larmarange [aut, cre] (<https://orcid.org/0000-0001-7097-700X>), Daniel D. Sjoberg [aut] (<https://orcid.org/0000-0003-0862-2018>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.