Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- country_model <- function(df) {
- lm(lifeExp ~ year, data = df)
- }
- apminder.model <- gapminder.nested %>%
- mutate(model = map(data, country_model),
- coef = map(model, broom::tidy))
- model = map(data, ~ country_model)
- ## Evaluation error: no recognized region names
Add Comment
Please, Sign In to add comment