FormulaList: Dynamically generate formulas

Description Usage Arguments See Also Examples

Description

Function to dynamically generate formulas - (F)ormula (L)ist - to be used in mutar.

Usage

1
2
3
4
5
6
FL(..., .n = NULL, pattern = "\\.n")

makeFormulas(..., .n, pattern = "\\.n")

## S3 method for class 'FormulaList'
update(object, data, ...)

Arguments

...

(formulas)

.n

names to be used in formulas. Can be any object which can be used by extract to select columns. NULL is interpreted to use the formulas without change.

pattern

(character) pattern to be replaced in formulas

object

(FormulaList)

data

(data.frame)

See Also

mutar

Examples

1
2
FL(.n ~ mean(.n), .n = "variable")
as(makeFormulas(.n ~ mean(.n), .n = "variable"), "FormulaList")

wahani/dat documentation built on Jan. 22, 2018, 10:19 p.m.