powered by
Grab a vector of responses from a model object
grab_response(data, formula)
a model.response
model.response
data.frame from which to extract the vector of responses
model formula
# Grab vector of responses for the first ten rows of iris data fit <- lm(Sepal.Width ~ Petal.Width, data = iris) grab_response( data = iris[1:10, ], formula(fit))
Run the code above in your browser using DataLab