Combining observation-values in new variable(s)

Hi,

I work with patient-data in the diagnostics department of a hospital. I am relatively new to R/R-studio.

I have a data-frame that shows patient examinations (patient number, start time etc.). However some examinations include multiple procedures (fx. when a patient is scanned in both head and torso during the same examination). The result is that examinations are often registered multiple times in the data-frame with the same examination-time but with differing procedures.

My goal is to have all procedures for a given patient examination displayed in the same line in the data-frame: For observations with identical value in "patient-number" and "start time" but differing value in "type of procedure" I want the additional procedures displayed in the same observation-line.

Hope it makes sense and that someone can help - thank you in advance :smiley:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.