Extract the response from a data set

Share:

Description

Extract the response from a data set

Usage

1

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.

Author(s)

Christofer B├Ącklin

Examples

1
2
identical(iris$Species, get_response(iris, "Species"))
identical(iris$Sepal.Length, get_response(iris, Sepal.Length ~ .))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.