-1

I have a data frame that looks as below:

Name ID1 ID2
M1 as 32
M1 ds 32
M1 sd 32
M1 ds 32
M1 sd 32
M1 sd 32
M2 sd 32
M2 gf 32
M2 gh 32
M2 hj 32
M2 kj 32
M2 kl 32
M2 uy 32
... ... ...
M100 yt 90

How do I split this data frame into separate data frames, each populated with rows containing M1, M2, M3....M100 individually, using a function?

0 Answers0