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

Refactor functions internally #273

Merged
merged 15 commits into from
Dec 18, 2024
Merged

Refactor functions internally #273

merged 15 commits into from
Dec 18, 2024

Conversation

catalamarti
Copy link
Collaborator

No description provided.

@catalamarti catalamarti changed the title Speed up summariseAllConcepts Refactor functions internally Dec 17, 2024
'dplyr::n_distinct(.data$subject_id)'
) |>
rlang::set_names(c("count_records", "count_subjecst", "count_subjects")) |>
purrr::keep(c("records", "person_id", "subject_id") %in% counts) |>
Copy link
Collaborator

Choose a reason for hiding this comment

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

is count_subjecst a typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, its is just that I allow to be person_id or subject_id but the resulting estimate will be always "number of subjects". At the end the second on dplyr::n_distinct(.data$subject_id) it is not used, so we can delete it if we want

@cecicampanile cecicampanile merged commit c297a86 into main Dec 18, 2024
5 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
2 participants