4 ms·
Something that I do now and then, that really screws up the readability, is when I want to join a dataframe with another, but forget to manipulate the second. A
by in9 9y ago
Something that I do now and then, that really screws up the readability, is when I want to join a dataframe with another, but forget to manipulate the second. And it turns to something like:
df %>%
select(var_1, var_2, var_3) %>%
left_join(df2 %>%
select(another_var1, var2),
by = c('var_2', 'var2'))
This is really over using `%>%`. However, I sometimes take this pattern way too far... :D
- ap53 9y agoI do the same thing all the time... How would you improve it? Thanks!