Skip to content

Instantly share code, notes, and snippets.

@anilyayavar
Created April 12, 2024 07:44
Show Gist options
  • Save anilyayavar/b575799737164c892c34da1c9d57edc8 to your computer and use it in GitHub Desktop.
Save anilyayavar/b575799737164c892c34da1c9d57edc8 to your computer and use it in GitHub Desktop.
# First Witness
witnesses <- person %>%
filter(str_detect(address_street_name, "Northwestern Dr") &
address_number == max(address_number),
.by = address_street_name) %>%
# Join with Second Witness
bind_rows(
person %>%
filter(str_detect(name, "Annabel") &
str_detect(address_street_name, "Franklin Ave"))
) %>%
pull(id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment