Data Science Desktop Survival Guide
by Graham Williams
Pipeline Syntactic Sugar
# Summarise observations with little or no rainfall.
select(MinTemp, MaxTemp, Rainfall, Sunshine) %>%
filter(Rainfall < 1) %>%
# Functional form equivalent to the pipeline above.
MinTemp, MaxTemp, Rainfall, Sunshine),
Rainfall < 1))
Anything that improves the readability of our code is useful. Computers are quite capable of doing the hard work of transforming a simpler sentence into this much more complex looking sentence.