grab_response | R Documentation |
Grab a vector of responses from a model object
grab_response(data, formula)
data |
data.frame from which to extract the vector of responses |
formula |
model formula |
a model.response
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.