I am struggling to understand the behavior of the pipe operator (|> in base R, but I have the same problem with magrittr's %>%) when I apply a transformation in one of the steps:
table(iris$Species) |> prop.table() |> round(1)
setosa versicolor virginica
0.3 0.3 0.3
table(iris$Species) |> prop.table()*100 |> round(1)
setosa versicolor virginica
33.33333 33.33333 33.33333
Why the second command does not pass the result to round?