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

Tidy up package #37

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Tidy up package #37

merged 3 commits into from
Aug 21, 2024

Conversation

wangben718
Copy link
Collaborator

@wangben718 wangben718 commented Aug 6, 2024

clean up the package to pass build check and fix a bug

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be output in "vignettes/outtable" folder?
This is related to Line #261 of vignettes/baseline-character.Rmd.

@@ -221,7 +205,7 @@ x <- outdata |>
format_disposition()

x$tbl <- x$tbl %>%
mutate(name = ifelse(trimws(name) == "ZStatus Not Recorded", " Status Not Recorded", name))
mutate(name = ifelse(trimws(name) == "Status Not Recorded", " Status Not Recorded", name))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this term is changed, the term in Line #77 also needs to be changed.

mutate(DCTREAS = ifelse(DISCONFL == "Y", DCREASCD, "ZStatus Not Recorded"))

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sample may be confused since the reason for discontinuation is displayed even under "Completed" and "Participants Ongoing".

It would be more realistic as sample data to set a value of DCTREAS (and DCSREAS for study discontinuation) only when EOTSTT1 is "discontinued" because DCTREAS is a variable of reason for discontinuation of treatment.

Copy link
Collaborator

@fukuhiro2023 fukuhiro2023 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for update. I have added some comments. Please check them.

@wangben718 wangben718 merged commit c1b194f into main Aug 21, 2024
6 checks 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