From 2330e438c39573ddb3db6ab2e398908cdd0dc91e Mon Sep 17 00:00:00 2001 From: Riva Quiroga <31421616+rivaquiroga@users.noreply.github.com> Date: Sat, 3 Oct 2020 11:34:50 -0300 Subject: [PATCH] top_n to slice_max (#870) --- model-building.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-building.Rmd b/model-building.Rmd index 7f345c9..861d0ab 100644 --- a/model-building.Rmd +++ b/model-building.Rmd @@ -413,7 +413,7 @@ We see a strong pattern in the numbers of Saturday flights. This is reassuring, ```{r} daily %>% - top_n(3, resid) + slice_max(n = 3, resid) ``` 1. Create a new variable that splits the `wday` variable into terms, but only