Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement has_X as an analogue to remove_X #82

Open
ErdaradunGaztea opened this issue Feb 27, 2021 · 0 comments
Open

Implement has_X as an analogue to remove_X #82

ErdaradunGaztea opened this issue Feb 27, 2021 · 0 comments
Labels
enhancement We don't do that here... yet

Comments

@ErdaradunGaztea
Copy link
Member

Especially useful for dplyr::filter usage. Right now it's necessary to write the code like that:

sq_tibble %>%
  mutate(sq = remove_ambiguous(sq)) %>%
  filter(length(sq) > 0)

We'd rather have it like that:

sq_tibble %>%
  filter(!has_ambiguous(sq))

Another point is that the latter preserves sequences of length 0 if such were present in the original tibble.

@ErdaradunGaztea ErdaradunGaztea added the enhancement We don't do that here... yet label Feb 27, 2021
@ErdaradunGaztea ErdaradunGaztea added this to To do in New core functionalities via automation Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement We don't do that here... yet
Projects
Development

No branches or pull requests

1 participant