3 ms·
After version 4.2 R native pipe also got place holder. It is “_” symbol. More here: https://davidbudzynski.github.io/general/2022/04/23/r-native-placeholder.htm
by vasili111 3y ago
After version 4.2 R native pipe also got place holder. It is “_” symbol. More here: https://davidbudzynski.github.io/general/2022/04/23/r-native-placeholder.html https://davidbudzynski.github.io/general/2022/04/23/r-native...
- rcthompson 3y agoYeah, but it's a single-use placeholder. AFAIK It can't do things like: x %>% set_names(., str_c("X_", names(.)) All the underscore does is let you pass the piped argument as a named argument instead of the first otherwise-unfilled argument.