mf: Create a formula from a list of variable names

View source: R/surveys.R

mfR Documentation

Create a formula from a list of variable names

Description

Creates a formula from a list of variable names. If more than one list of names, it combines them using combine_names to create all combinations of names.

Usage

mf(..., type = "+")

Arguments

...

One or more lists of variable names to make into a formula

type

Combination method. Defaults to '+'. It might also be useful to do '*'

Value

A formula containing all of the specified names

Examples

mf(c("var"), c("one", "two"), "_n")

rwash/surveys documentation built on Sept. 18, 2023, 11:31 p.m.