From ee6ade94837b53ca28b1f439b2b2d977faf2c49a Mon Sep 17 00:00:00 2001 From: hpolvech <helene.polveche@ens-lyon.fr> Date: Thu, 14 Oct 2021 11:07:45 +0200 Subject: [PATCH] correction r balises --- session_4/session_4.Rmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/session_4/session_4.Rmd b/session_4/session_4.Rmd index 26b3fb7..4ef3102 100644 --- a/session_4/session_4.Rmd +++ b/session_4/session_4.Rmd @@ -276,17 +276,17 @@ arrange(tibble(x = c(5, 2, NA)), desc(is.na(x))) `select()` allows you to rapidly zoom in on a useful subset using operations based on the names of the variables. You can select by column names -```{r select_ymd_a, , include=TRUE} +```{r select_ymd_a, include=TRUE} select(flights, year, month, day) ``` By defining a range of columns -```{r select_ymd_b, , include=TRUE} +```{r select_ymd_b, include=TRUE} select(flights, year:day) ``` Or you can do a negative (`-`) to remove columns. -```{r select_ymd_c, , include=TRUE} +```{r select_ymd_c, include=TRUE} select(flights, -(year:day)) ``` -- GitLab