Learn R Programming

emil (version 2.2.10)

get_response: Extract the response from a data set

Description

Extract the response from a data set

Usage

get_response(x, y)

Arguments

x

Data set features.

y

Response vector or any other type of objects that describe how to extract the response vector from x.

Value

A response vector.

Examples

Run this code
# NOT RUN {
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