6 ms·
my_df %>% plot(col1,col2,col3) see 18.2.1 and 18.2.4 in https://r4ds.had.co.nz/pipes.html https://r4ds.had.co.nz/pipes.html much sugar
by RocketSyntax 6y ago
my_df %>% plot(col1,col2,col3)
see 18.2.1 and 18.2.4 in
https://r4ds.had.co.nz/pipes.html https://r4ds.had.co.nz/pipes.html
much sugar
- mellavora 6y agotoo much sugar can make your code diabetic. pipes are cool until they aren't
- ktpsns 6y agoThe %>% notation might not be very short, but there are other short ways of avoiding parenthesis mess as in foo = qux(bar(foo(x))). For instance, Mathematica/Wolfram language allows you to write something basically foo = qux @ bar @ foo(x) which resembles the function composition operator in mathematics (https://en.wikipedia.org/wiki/Function_composition https://en.wikipedia.org/wiki/Function_composition). Piping is basically the reverse notation, i.e. foo = foo(x) | bar | qux.