Post

Using native pipe operator `|>` in r

Using native pipe operator `|>` in r
1
numbers <- c(1, 1, 2, 2, 3, 3)

Nested function calls

1
length(unique(numbers))
1
[1] 3

Pipe operator should make the code more readable

1
numbers |> unique() |> length()
1
[1] 3

Trending Tags