f_list: Build a named list from the LHS of formulas

View source: R/formula.R

f_listR Documentation

Build a named list from the LHS of formulas

Description

f_list makes a new list; as_f_list takes an existing list. Both take the LHS of any two-sided formulas and evaluate it, replacing the current name with the result.

Usage

f_list(...)

as_f_list(x)

Arguments

...

Named arguments.

x

An existing list

Value

A named list.

Examples

f_list("y" ~ x)
f_list(a = "y" ~ a, ~ b, c = ~c)

hadley/lazyeval documentation built on June 19, 2022, 2:21 a.m.