Add missing assignment
This commit is contained in:
parent
8670e92a8c
commit
8170f7c4f9
|
@ -207,10 +207,11 @@ broom::glance(nz_mod)
|
|||
We can use `mutate()` and `unnest()` to create a data frame with a row for each country:
|
||||
|
||||
```{r}
|
||||
by_country %>%
|
||||
glance <- by_country %>%
|
||||
mutate(glance = map(model, broom::glance)) %>%
|
||||
select(-data, -model, -resids) %>% # removing the unnecessary list columns
|
||||
select(country, continent, glance) %>%
|
||||
unnest(glance)
|
||||
glance
|
||||
```
|
||||
|
||||
(Pay attention to the variables that aren't printed: there's a lot of useful stuff there.)
|
||||
|
|
Loading…
Reference in New Issue