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

Single-arg table_one #48

Merged
merged 5 commits into from
Oct 24, 2024
Merged

Single-arg table_one #48

merged 5 commits into from
Oct 24, 2024

Conversation

jkrumbiegel
Copy link
Collaborator

Fixes #43

Example:

using SummaryTables
using DataFrames

data = DataFrame(
    sex = ["m", "m", "m", "m", "f", "f", "f", "f", "f", "f"],
    age = [27, 45, 34, 85, 55, 44, 24, 29, 37, 76],
    blood_type = ["A", "0", "B", "B", "B", "A", "0", "A", "A", "B"],
    smoker = [true, false, false, false, true, true, true, false, false, false],
)

table_one(data)
image
table_one(data, groupby = :blood_type)
image

@jkrumbiegel jkrumbiegel merged commit 725cad3 into master Oct 24, 2024
6 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/single-arg-tableone branch October 24, 2024 14:00
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.

Display all columns by default?
1 participant