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

test of meta_add_total.R #85

Closed
LittleBeannie opened this issue Oct 27, 2022 · 0 comments · Fixed by #92
Closed

test of meta_add_total.R #85

LittleBeannie opened this issue Oct 27, 2022 · 0 comments · Fixed by #92
Assignees

Comments

@LittleBeannie
Copy link
Collaborator

LittleBeannie commented Oct 27, 2022

Test plan of meta_add_total

  • Throw error when meta_add_total(meta = meta_dummy(), total = c("Total", "Sum"))
  • The output of
x <- meta_add_total(meta = meta_dummy(), total = "Total")
x$data_population$TRTA
x$data_observation$TRTA

has a "Total" there in both data_population and data_observation.

USUBJID TRTA
1 treatment
2 control
1 Total
2 Total

group by TRTA
summarize n(USUBJID)

treatment 1
control 1
Total 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants