You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stringi package: stri_trans_general(x, "latin-ascii") might be the best way to do it. Use it inside a mutate() to transform the column containing the player names!
x<- c(
"Hello World", "6 Ekstr\xf8m", "J\xf6reskog", "bi\xdfchen Z\xfcrcher",
'This is a \xA9 but not a \xAE', '6 \xF7 2 = 3',
'fractions \xBC, \xBD, \xBE', 'cows go \xB5', '30\xA2')
data.frame(thingy=x) %>%
mutate(thingy2=stringi::stri_trans_general(thingy, "latin-ascii"))
Parse non-ASCII characters in StatsBomb (and other) data for use with
soccerPosition
and other future plotting functions. For example,Kylian Mbappé
currently renders asKylian Mbappé
.The text was updated successfully, but these errors were encountered: