I'm new to this forum so please forgive me possible mistakes. I have a two column data set which looks like this:
I would like to convert the values each id has (in the column "count") into vectors for that id, so f.e. for 274:
vec274 = c(1, 15, 21, 29)
The end goal is using these vectors in a formula.