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

Fix missing as group in table_one #47

Merged
merged 5 commits into from
Oct 24, 2024
Merged

Conversation

jkrumbiegel
Copy link
Collaborator

@jkrumbiegel jkrumbiegel commented Oct 24, 2024

Fixes #45 and also fixes #46 because the latter happened to come up while fixing the former.

Now you can do:

data = (;
    value = 1:6,
    group1 = ["A", missing, "A", "B", "B", missing],
    group2 = ["D", missing, "D", "D", missing, missing],
)

t = table_one(data, [:value], groupby = [:group1, :group2], group_totals = [:group2])
image

@jkrumbiegel jkrumbiegel merged commit 4135532 into master Oct 24, 2024
6 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/fix-missing-as-group branch October 24, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant