Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in Factories exercise: model --> formula #1667

Merged
merged 1 commit into from
Mar 19, 2023
Merged

Fix typo in Factories exercise: model --> formula #1667

merged 1 commit into from
Mar 19, 2023

Conversation

milanmlft
Copy link
Contributor

The boot_model() function does not have a model argument. It does have formula.

boot_model <- function(df, formula) {
mod <- lm(formula, data = df)
fitted <- unname(fitted(mod))
resid <- unname(resid(mod))
rm(mod)
function() {
fitted + sample(resid)
}
}

The `boot_model()` function does not have a `model` argument. It does have `formula`.
@hadley hadley merged commit 938e6f1 into hadley:master Mar 19, 2023
@hadley
Copy link
Owner

hadley commented Mar 19, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants