I am giving the first steps with coding and with R and i have a problem:
I have one data frame with this format:
Months| Person
April Person1
May Person2
April Person1
June Person 3
May Person4
and i want this output:
May - Person2, Person4
April - Person1
June - Person3
I am using unique(df$months)
and i get the unique months but i can't obtain the persons.
I was thinking save the index of each unique(df$months)
and select the "person" of these index... this for each unique(df$months)
. But this doesn't seems "optimal" or good practice.
Anyone can help me?