Hello,
I am working on a dataset that has multiple record IDs with suffixes (RecordID x2, x3, x4, etc) to denote which instance of procedure the observation is denoting. I want to drop the x2, x3, x4, etc off the end of the record IDs so that I will have duplicate IDs. (I'm planning to cluster by ID later on in my analysis) .
I'm not sure how to get rid of the trailing bits after my record numbers. Can anyone help with this?
Thanks!
I am working on a dataset that has multiple record IDs with suffixes (RecordID x2, x3, x4, etc) to denote which instance of procedure the observation is denoting. I want to drop the x2, x3, x4, etc off the end of the record IDs so that I will have duplicate IDs. (I'm planning to cluster by ID later on in my analysis) .
I'm not sure how to get rid of the trailing bits after my record numbers. Can anyone help with this?
Thanks!

Comment