Guest User

Untitled

a guest
Dec 10th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. country_model <- function(df) {
  2. lm(lifeExp ~ year, data = df)
  3. }
  4.  
  5. apminder.model <- gapminder.nested %>%
  6. mutate(model = map(data, country_model),
  7. coef = map(model, broom::tidy))
  8.  
  9. model = map(data, ~ country_model)
  10.  
  11. ## Evaluation error: no recognized region names
Add Comment
Please, Sign In to add comment