From f34678da556ef55c75975675e5d44c1baf23c42a Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Sat, 3 Oct 2020 16:37:42 +0200 Subject: [PATCH] Models-many.Rmd: Spelling/grammar (#858) --- model-many.Rmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/model-many.Rmd b/model-many.Rmd index 124794b..e58de50 100644 --- a/model-many.Rmd +++ b/model-many.Rmd @@ -166,14 +166,14 @@ by_country <- by_country %>% by_country ``` -But how you can plot a list of data frames? Instead of struggling to answer that question, let's turn the list of data frames back into a regular data frame. Previously we used `nest()` to turn a regular data frame into an nested data frame, and now we do the opposite with `unnest()`: +But how can you plot a list of data frames? Instead of struggling to answer that question, let's turn the list of data frames back into a regular data frame. Previously we used `nest()` to turn a regular data frame into an nested data frame, and now we do the opposite with `unnest()`: ```{r} resids <- unnest(by_country, resids) resids ``` -Note that each regular column is repeated one for each row in the nested column. +Note that each regular column is repeated once for each row of the nested tibble. Now we have regular data frame, we can plot the residuals: @@ -575,4 +575,3 @@ The broom package provides three general tools for turning models into tidy data 1. `broom::augment(model, data)` returns a row for each row in `data`, adding extra values like residuals, and influence statistics. -