Learn R Programming

emil (version 2.2.3)

get_response: Extract the response from a data set

Description

Extract the response from a data set

Usage

get_response(x, y)

Arguments

Value

A response vector.

Examples

Run this code
identical(iris$Species, get_response(iris, "Species"))
identical(iris$Sepal.Length, get_response(iris, Sepal.Length ~ .))

Run the code above in your browser using DataLab