Pipes: Spacing
# Strive for space before |>, end line with |>
flights |>
filter(!is.na(arr_delay), !is.na(tailnum)) |>
count(dest)
# Avoid
flights|>filter(!is.na(arr_delay), !is.na(tailnum))|>count(dest)
Easier to:
- add new steps
- rearrange existing steps
- modify elements within a step
- to get a 50,000 ft view by skimming the verbs on the left-hand side