From 72d955988d8ce5946615635bf2e2b64c8887d323 Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Mon, 18 Oct 2021 14:15:20 +0200 Subject: [PATCH] session_4: fix challenge result display --- session_4/session_4.Rmd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/session_4/session_4.Rmd b/session_4/session_4.Rmd index 3a8955e..471665e 100644 --- a/session_4/session_4.Rmd +++ b/session_4/session_4.Rmd @@ -185,13 +185,8 @@ Find all flights that: <details><summary>Solution</summary> <p> - -```{r filter_chalenges_a, eval=TRUE} -filter(flights, arr_delay >= 60 | arr_delay <= 120) -``` - ```{r filter_chalenges_b, eval=TRUE} -filter(flights, dest %in% c("IAH", "HOU")) +filter(flights, arr_delay >= 120 & dest %in% c("IAH", "HOU")) ``` </p> </details> @@ -327,6 +322,7 @@ select(flights, contains("_") & !starts_with("sched") & !starts_with("time")) ``` </p> </details> + - What does the `one_of()` function do? Why might it be helpful in conjunction with this vector? ```{r select_one_of, eval=T, message=F, cache=T} -- GitLab