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

tag for conditional execution ? #42

Open
moodymudskipper opened this issue Jul 9, 2019 · 0 comments
Open

tag for conditional execution ? #42

moodymudskipper opened this issue Jul 9, 2019 · 0 comments

Comments

@moodymudskipper
Copy link
Owner

see the following :

df %>% 
  when(!is.null(date) ~ filter(.,as_date(event_time) == date))

I think it would read much nicer as :

df %>%
   tag1(!is.null(date))$filter(.,as_date(event_time) == date)

It's more like pif than when in fact.

The tag could have a second parameter .else or .otherwise that would by default be identity.

Another parameter should be used to signal the data argument, which by default is the first.

No idea so far for the name...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant