3
I am taking the first steps in programming and with the R language and I have the following doubt
I have an anniversary dataframe with the following format
Months | Person
Abril Joao
Março Ana
Abril Carlos
Junho Joana
Março Pedro
and wanted a genre output
March - Ana, Pedro
April - Joao ,Carlos
June - Joana
I’m using Unicorn(df$months) and I get the only months but I’m not getting to each month select all people
I was thinking of keeping the indices of each Unique(df$months) and then selecting the names of those indices...this for each Unique(df$months). But this does not seem to me to be very "correct" at the level of optimization.
Can anyone help?
Thank you :)
Rookie, your problem seems to me to be similar to this question: http://answall.com/questions/11442/colapsar-textos-em-única-linha-numa-base-dados/11443#11443
– Carlos Cinelli