I have a dataset like this.
ID Col1 Col2 Col3 Col4 Score
1 1 1 1 1 30.14
2 1 1 1 1 30.26
3 1 1 1 1 30.14
4 1 1 1 1 30.14
5 1 3 3 3 38.78
6 1 3 3 3 38.78
7 1 1 1 2 38.34
8 1 1 1 2 38.34
I like to create a summary of data patterns like this.
Col1 Col2 Col3 Col4 Score
1 1 1 1 30.14, 30.26
1 3 3 3 38.78
1 1 1 2 38.34
I am not sure how to generate such a pattern. I tried the md.pattern function from mice but it does not give a collapsed column of Scores. Doing a unique also will not work. Any suggestion on how to create this summary is much apricated.