-
Notifications
You must be signed in to change notification settings - Fork 131
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
let crosstab be called in a pipeline #33
Comments
I'm working on this now, which means I'm muddeling through a lot of NSE problems. |
Awesome! And not awesome, respectively. I have had a lot of trouble with NSE while writing this package 👎 When I got your email about using S3 to have a method work on different classes, I thought "I'm going to learn something here." I googled it, and I think I get what you're going for, which would be brilliant. |
I've got it mostly working. Can you make me a contributor on this repo so I can push a branch? |
Actually, ignore that last request. I've just forked and recloned the repo. |
Very nice work. I am leaving this open just until I update the vignette accordingly. And I'll try to adapt the approach you've taken here to the |
crosstab()
codeIdea from @chrishaid
by creating another function. Here is a crude mockup:
Which works:
mtcars %>% crosstab_df(cyl, am)
(sort of, variable name is lost in the result)Do this for
tabyl()
too astabyl_df()
, right now it's tedious to have a dplyr pipeline with a filter, etc. that I have to interrupt to use tabyl() (or useuse_series()
which isn't even an option forcrosstab()
).The text was updated successfully, but these errors were encountered: