Show HN: Simple Binary Data Visualization in R
martin.varela.fi
martin.varela.fi
Why on earth would anyone write that instead of na.omit(as.tibble(cbind(x,y,z)))? Baffles me.
x %>%
bind_cols(y, z) %>%
as.tibble() %>%
na.omit()
Makes the order of execution a little clearer (and uses more dplyr conventions). I still nest functions when working interactively with a REPL, but for code I'll have to reread in the future, the pipes save me much head scratching. Death to the pyramid of doom.dplyr nowadays obsoletes most of the basic building blocks of data frame construction, although they are hidden in the docs.
It's why I adore %>% as code gets reads as a sequence of step-by-step instructions, of one forcing a reader to constantly keep switching between left-to-right and right-to-left.