From 4be7b0911e08777955ff8d416dc9c1661bf0ddb5 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 5 Dec 2025 10:59:11 -0800 Subject: [PATCH] Give an example replacing '.' with '_' --- pipes.qmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pipes.qmd b/pipes.qmd index 780a9ba..5f06cd2 100755 --- a/pipes.qmd +++ b/pipes.qmd @@ -160,10 +160,18 @@ iris |> summarise(width = Sepal.Width, .by = Species) |> arrange(width) +iris |> + _$Sepal.Width |> + append(pi, values = _) + # Bad iris %>% summarise(width = Sepal.Width, .by = Species) %>% arrange(width) + +iris %>% + .$Sepal.Width %>% + append(pi, .) ``` As of R 4.3.0, the base pipe provides all the features from magrittr that we recommend using.