Hi,
I'm searching for a command to list only the highest frequency of duplicated ID in each hospital. I am not interested to see all patients that has same highest duplication, I just want to see the highest regardless of how many have the same number of duplication (if any).
so for example, if hospital A has several civil IDs that have same highest number of visit (e.g. 145), I only want that number, so that there will be no repetition. So, let say there is 10 hospitals, the list results should be only 10. Hope this is clear now. I would share a sample of the data but it is very sensitive and creating dummy resemblance would take time.
Any thoughts is appreciated!
I'm searching for a command to list only the highest frequency of duplicated ID in each hospital. I am not interested to see all patients that has same highest duplication, I just want to see the highest regardless of how many have the same number of duplication (if any).
so for example, if hospital A has several civil IDs that have same highest number of visit (e.g. 145), I only want that number, so that there will be no repetition. So, let say there is 10 hospitals, the list results should be only 10. Hope this is clear now. I would share a sample of the data but it is very sensitive and creating dummy resemblance would take time.
Any thoughts is appreciated!
Comment