I have the following code for two data frames I am working on.
DF_TEAMS_TOTAL_SALARY_2017 = data.frame(TEAMS_TOTAL_SALARY_2017)
clubs_df = sort(unique(complete_dataset$club))
clubs_df = data.frame(clubs_df)
I am trying to merge them since the order of the records are good and I want to have a table with the Clubs and the Total Salary of 2017. However, when I do the merge function or rbind the table I get has multiple records of the CLUB with the first value of the DF_TEAMS_TOTAL_SALARY_2017 t
The rest of the values in TEAMS_TOTAL_SALARY_2017 doesn't show up.