I have data as shown below. I need to add the numbers preceding "mL" for each ID, into 1 variable, and add the numbers preceding mL/kg per ID into another variable.
I tried removing the spaces but I don't know how many digits the number will be, to count back.
I tried extracting the numeric part but then other numbers like the 9 from the % also gets extracted.
Any help on how to do it in SAS (or Excel) will be appreciated. Thank you!
ID
DISPLAY_NAME
1
sodium chloride 0.9 % bolus 2,250 mL
1
sodium chloride 0.9 % bolus 1,000 mL
1
sodium chloride 0.9 % bolus 1,000 mL
2
sodium chloride 0.9 % bolus 500 mL
3
sodium chloride 0.9 % bolus 1,000 mL
3
sodium chloride 0.9 % bolus 250 mL
3
sodium chloride 0.9 % bolus 1,551 mL
4
lactated ringers bolus 1,000 mL
4
sodium chloride 0.9 % bolus 1,000 mL
4
PLASMA-LYTE A bolus 1,000 mL
5
sodium chloride 0.9 % bolus 30 mL/kg/dose
5
sodium chloride 0.9 % bolus 1,000 mL
... View more