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

report_participants: gender supports alternate spellings, convert age to numeric #389

Merged
merged 8 commits into from
Aug 21, 2023

Conversation

rempsyc
Copy link
Member

@rempsyc rempsyc commented Aug 18, 2023

report_participants: gender supports alternate spellings, convert age to numeric


Fixes #388:

library(report)
data <- data.frame(
  "Age" = as.character(c(22, 22, 28, 11, 42, 52)),
  "Gender" = c("Men", "Women", "Men", "Women", "Men", "Women")
)
report_participants(data)
#> [1] "6 participants (Mean age = 29.5, SD = 15.0, range: [11, 52]; Gender: 50.0% women, 50.0% men, 0.00% non-binary)"

Created on 2023-08-18 with reprex v2.0.2

@rempsyc rempsyc added the bug 🐛 Something isn't working label Aug 18, 2023
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #389 (b533df8) into main (0b1046d) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head b533df8 differs from pull request most recent head e7e1e94. Consider uploading reports for the commit e7e1e94 to get more accurate results

@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
+ Coverage   72.25%   72.27%   +0.01%     
==========================================
  Files          47       47              
  Lines        3316     3329      +13     
==========================================
+ Hits         2396     2406      +10     
- Misses        920      923       +3     
Files Changed Coverage Δ
R/report_participants.R 93.10% <100.00%> (+0.32%) ⬆️

... and 1 file with indirect coverage changes

@rempsyc rempsyc merged commit b5821f5 into main Aug 21, 2023
26 checks passed
@rempsyc rempsyc deleted the report_participants_gender branch August 21, 2023 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

report_participants() should set age as numeric, accept more choices for gender
1 participant