Pipe syntax for formulae


Some programming languages have a very handy pipe syntax (e.g. R tidyverse with magrittr package ‘%>%’ (the ‘pipe’ operator). This chains operations together and improves readability of consecutive applications of several functions.

It would be nice if we could use some sort of pipe syntax in the formula editor.

For example. If we want to apply a function like right() first and left() second, we could have something like (Mystring piped into right() and that result piped into left()

“MyString” %>%
right(, 4) %>%
left(, 2)