Hope this piece of code works. Good luck. However, I would remind you that your original data might be more complicated than what you showed here, so be careful about the identifier of subjects.
逍遥梦蝶 发表于 2017-6-2 17:20
Hope this piece of code works. Good luck. However, I would remind you that your original data might ...
Well thank you very much for helping me solve this problem. Although the realistic condition may a bit more complicated,the method you offered above could always help me to think