powered by
Extract the response from a data set
get_response(x, y)
Data set features.
Response vector or any other type of objects that describe how to extract the response vector from x.
x
A response vector.
# 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