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

Create utility functions to help with stacking/merging data domains #138

Open
jwildfire opened this issue Apr 19, 2023 · 0 comments
Open

Comments

@jwildfire
Copy link
Contributor

Create utility functions for combining data across domains:

  • stack_measures
    • stacks labs, vs, ecg and other domains containing biometric measures.
    • required columns to be renamed/stacked are: id_col, value_col, measure_col, visit_col.
    • optional columns are normal_col_high, normal_col_low, studyday_col, visitn_col, unit_col
  • stack_events
    • stacks aes, cm, mh, exp and other domains containing events.
    • required columns: id_col, stdy_col, endy_col,
    • optional columns vary by domain. Likely just want to add a "details" column that varies by domain.
  • merge_dm
    • right_joins specified columns from dm to the current data by usubjid
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

No branches or pull requests

1 participant