Table of Contents

About

A formula in S is indicated by the ~ character.

?formula

Design Matrix

A formula is commonly used to generate design matrices for modeling function (e.g. lm).

mod1 <- lm(Sepal.Width ~ Petal.Width + log(Petal.Length) + Species, 
           data = iris, subset = Sepal.Length > 4.6)

Documentation / Reference