Learn R Programming

useful (version 1.2.6)

build.y: build.y

Description

Build the y object from a formula and data

Usage

build.y(formula, data)

Value

The y object from a formula and data

Arguments

formula

A formula

data

A data.frame

Author

Jared P. Lander

Details

Given a formula and a data.frame build the y object

Examples

Run this code
require(ggplot2)
head(mpg)
head(build.y(hwy ~ class + cyl + year, data=mpg))

Run the code above in your browser using DataLab