Description Usage Arguments Value Examples
View source: R/dog_combine_accession_numbers.R
If some ID variable, for the same person are within a specified distance they get combined into one.
1 2 | dog_combine_accession_numbers(df, Accession_number = Accession_number,
Study_date_time_PACS = Study_date_time_PACS, CPR, time_passed = 60)
|
df |
A data frame, which is in long format i.e. multiple rows for every Accession number. |
Accession_number |
An ID for the service. |
Study_date_time_PACS |
Timestamp for the service. Must be as a datetime format. |
CPR |
ID for the individual person. |
time_passed |
Ho much time i minuttes are allowed to pass between the timestamps. |
A data frame with the original columns and some new columns:
diff:
Tests if the conditin if satisfied.
diff2:
Tests if timestamp is the same as the one above, i.e. if an accession number has multiple rows.
diff3:
A combination of diff and diff2.
Accession_number2:
This is the important column and we can count this instead of Accession_number.
1 | dog_combine_accession_numbers(df = rispacs_left, CPR = Patient_RK, time_passed = 30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.