My data frame is:
df <- data.frame(player = c("Taiwo Awoniyi/e5478b87", "Jacob Bruun Larsen/4e204552", "Andi Zeqiri/d01231f0"), goals = c(2,5,7))
I want to remove all numbers after the "/" in the "player" column. To ideally have:
df <- data.frame(player = c("Taiwo Awoniyi", "Jacob Bruun Larsen", "Andi Zeqiri"), goals = c(2,5,7))
I am unsure of how to approach this since player names vary greatly in length and some numbers are larger than others.