Learn R Programming

lattice (version 0.2-3)

latticeParseFormula: Parse Trellis formula

Description

this function is used in trellis functions. Might be useful by itself. x and g_1,...,_n may be missing. trellis.args, Lattice [object Object] utilities

Usage

latticeParseFormula(model, data)

Arguments

model
the model/formula to be parsed, of the form y~x|g_1*...*g_n
data
the environment/dataset where the variables in the formula are evaluated. By default, the environment where the function was called from.

Value

  • returns a list with components left, right, left.name, right.name, condition. (More later)

synopsis

Parses the formula argument of trellis functions.