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.

f_list(...)

as_f_list(x)

Arguments

...

Named arguments.

x

An existing list

Value

A named list.

Examples

f_list("y" ~ x)
#> $y
#> ~x
#> <environment: 0x5636a382c9a0>
#> 
f_list(a = "y" ~ a, ~ b, c = ~c)
#> $y
#> ~a
#> <environment: 0x5636a382c9a0>
#> 
#> [[2]]
#> ~b
#> <environment: 0x5636a382c9a0>
#> 
#> $c
#> ~c
#> <environment: 0x5636a382c9a0>
#>