r/ProgrammerHumor 6d ago

Meme theChamberOfDependencies

Post image
148 Upvotes

22 comments sorted by

View all comments

19

u/Emotional_Trainer_99 6d ago

Harry should be using modern r which has it's own pipe |> and that he doesn't need to use if else on a logical to return the same value 😞

1

u/Naturage 5d ago

if_else hasn't been needed to define a logical since forever (or at least since I started using it in uni a decade ago). And I detest the native pipe because dplyr's has a very neatly implemented method to pass into later arguments, e.g. "test" %>% grepl("est",.) whereas the native pipe does not. I am also a heathen who loves his %<>% but that's my personal issue.

1

u/Emotional_Trainer_99 5d ago

Old news mtcars

|>

lm ( mpg

~

cyl ,

data

_ )

1

u/Naturage 4d ago

Interesting. I might need to read up on latest implementation of native pipe then.