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

Add (minimal) support for filtering #268

Merged
merged 6 commits into from
Aug 17, 2024
Merged

Add (minimal) support for filtering #268

merged 6 commits into from
Aug 17, 2024

Conversation

gergness
Copy link
Contributor

A request came in through @malecki that a user wanted to be able to filter crosstabs(), here's minimal support. I think probably the filtering information should be included in the output, but I'm not sure if that's required.

Note that I have chosen to implement in a way that mirrors the rest of the crunch package, where the filter is pulled from the dataset. This means that behavior could change. I'm happy to ignore the dataset filter if you want that inconsistency.

Also I don't really get the testing strategy, so didn't add tests. I did confirm that filters work as expected manually.

@gergness gergness requested a review from 1beb August 15, 2024 18:37
@gergness
Copy link
Contributor Author

For what it's worth, I get the same errors the CI hit before my commit.

@1beb
Copy link
Collaborator

1beb commented Aug 16, 2024

Can you include an example in the FAQ. https://github.com/Crunch-io/crunchtabs/blob/main/vignettes/FAQ.Rmd? "How do I filter my data before creating a topline/crosstab report?"

@1beb 1beb merged commit 31d2aff into main Aug 17, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants