I have the following dataframe Teams :
Team Year
012 Hortney 2017
012 Hortney 2018
013 James 2017
013 James 2018
014 Ilωus hero 2017
014 Ilωus hero 2018
015 Hortna 2017
015 Hortna 2018
016 Exclus race 2017
#with 25 000 more rows
And would like to transform it into the below df:
code name Year
012 Hortney 2017
012 Hortney 2018
013 James 2017
013 James 2018
014 Ilωus hero 2017
014 Ilωus hero 2018
015 Hortna 2017
015 Hortna 2018
016 Exclus race 2017
#with 25 000 more rows
I've tried this code separate(Team, c("code", "name")) but it makes the names of data strange (especially the Greek letter (ω), where everything after it disappears, and I must have ω intact for later coding. The last part of the name disappears as well in Exclus. Like this: (within brackets what I'm looking for)
code name Year
012 Hortney 2017
012 Hortney 2018
013 James 2018
014 Il 2017 (Ilωus hero)
014 Il 2018 (Ilωus hero)
015 Hortna 2017
015 Hortna 2018
016 Exclus 2017 (Exclus race)
#With 25 00 more rows
Anyone have any ideas?