I'm taking the first steps in programming and with the R language and I have the following doubt
I have a birthday dataframe with the following format
Months | Person
April Joao
March Ana
April Carlos
June Joan
March Pedro
and wanted an output of the genre
March - Ana, Pedro
April - Joao, Carlos
June - Joan
I'm using unique (df $ months) and I get the unique months but I can not get every month to select all the people
I was thinking of saving the indices of each unique (df $ months) and then selecting the names of these indices ... this for each unique (df $ months). But this does not seem to me to be very "right" at optimization level.
Can anyone help?
Thank you:)