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

messaging for missing inputs #204

Closed
shannonpileggi opened this issue Dec 22, 2022 · 2 comments · Fixed by #212
Closed

messaging for missing inputs #204

shannonpileggi opened this issue Dec 22, 2022 · 2 comments · Fixed by #212
Assignees

Comments

@shannonpileggi
Copy link
Owner

What do you think about producing a message if there are missing values in fields supplied other than the by value?

dat <- df_adverse_events |> 
  mutate(
    adverse_event = if_else(patient_id == "ID 1" & adverse_event == "Anaemia", NA, adverse_event),
  )


dat |> 
  tbl_ae(
    id = patient_id,
    ae = adverse_event,
    soc = system_organ_class,
    by = grade
  )
@ddsjoberg
Copy link
Collaborator

that is a great idea. it would go in the complete data function?

@shannonpileggi
Copy link
Owner Author

awesome. yeah that sounds good! i can have a go at this :)

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 a pull request may close this issue.

2 participants